mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 20:08:11 +01:00
feat(profile): update some ctl tools.
This commit is contained in:
parent
a41f85e87b
commit
c90d2fea94
3 changed files with 10 additions and 3 deletions
|
@ -43,6 +43,7 @@ profile busctl @{exec_path} {
|
|||
@{PROC}/@{pid}/comm r,
|
||||
@{PROC}/@{pid}/stat r,
|
||||
owner @{PROC}/@{pid}/cmdline r,
|
||||
owner @{PROC}/@{pid}/fdinfo/@{int} r,
|
||||
owner @{PROC}/@{pid}/loginuid r,
|
||||
owner @{PROC}/@{pid}/sessionid r,
|
||||
|
||||
|
|
|
@ -9,18 +9,24 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/loginctl
|
||||
profile loginctl @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.login1.Session>
|
||||
include <abstractions/bus/org.freedesktop.login1>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
capability net_admin,
|
||||
capability sys_resource,
|
||||
|
||||
signal send set=cont peer=child-pager,
|
||||
|
||||
#aa:dbus talk bus=system name=org.freedesktop.login1 label=systemd-logind
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{pager_path} rPx -> child-pager,
|
||||
|
||||
@{PROC}/sys/fs/nr_open r,
|
||||
owner @{PROC}/@{pid}/cgroup r,
|
||||
|
||||
include if exists <local/loginctl>
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ profile userdbctl @{exec_path} {
|
|||
/etc/shadow r,
|
||||
/etc/gshadow r,
|
||||
|
||||
@{PROC}/@{pid}/cgroup r,
|
||||
@{PROC}/1/cgroup r,
|
||||
|
||||
include if exists <local/userdbctl>
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue