feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2022-10-08 13:13:44 +01:00
parent d629ac5788
commit eddf6bfc4f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 30 additions and 18 deletions

View file

@ -8,7 +8,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/journalctl
profile journalctl @{exec_path} {
profile journalctl @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
@ -47,5 +47,7 @@ profile journalctl @{exec_path} {
owner @{PROC}/@{pid}/cgroup r,
deny /apparmor/.null rw,
include if exists <local/systemd-journalctl>
}

View file

@ -17,5 +17,7 @@ profile systemd-machine-id-setup @{exec_path} {
/etc/machine-id rw,
owner @{PROC}/@{pid}/stat r,
include if exists <local/systemd-machine-id-setup>
}

View file

@ -21,5 +21,7 @@ profile systemd-mount @{exec_path} {
@{sys}/bus/ r,
@{sys}/class/ r,
owner @{PROC}/@{pid}/mountinfo r,
include if exists <local/systemd-mount>
}

View file

@ -16,7 +16,9 @@ profile userdbctl @{exec_path} {
@{exec_path} mr,
/{usr/,}bin/less rPx -> child-pager,
/{usr/,}bin/less rPx -> child-pager,
/{usr/,}bin/more rPx -> child-pager,
/{usr/,}bin/pager rPx -> child-pager,
/etc/shadow r,
/etc/gshadow r,