mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(abs): add the initial version of the systemctl abstraction.
This commit is contained in:
parent
7e8f854b16
commit
af0c87f712
18
apparmor.d/abstractions/systemctl
Normal file
18
apparmor.d/abstractions/systemctl
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
ptrace (read) peer=@{systemd},
|
||||||
|
|
||||||
|
unix (bind) type=stream addr=@@{hex}/bus/systemctl/,
|
||||||
|
|
||||||
|
@{bin}/systemctl mr,
|
||||||
|
|
||||||
|
owner @{run}/systemd/private rw,
|
||||||
|
|
||||||
|
@{PROC}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
|
include if exists <abstractions/systemctl.d>
|
Loading…
Reference in New Issue
Block a user