feat(profile): parser: move sysctl to its own subprofile.
This commit is contained in:
parent
7e79d5abef
commit
4dba131fb3
1 changed files with 11 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ profile apparmor.systemd @{exec_path} {
|
||||||
@{bin}/sed rix,
|
@{bin}/sed rix,
|
||||||
@{bin}/cat rix,
|
@{bin}/cat rix,
|
||||||
@{bin}/sort rix,
|
@{bin}/sort rix,
|
||||||
@{sbin}/sysctl rix,
|
@{sbin}/sysctl rCx -> sysctl,
|
||||||
@{bin}/systemd-detect-virt rPx,
|
@{bin}/systemd-detect-virt rPx,
|
||||||
@{bin}/xargs rix,
|
@{bin}/xargs rix,
|
||||||
|
|
||||||
|
|
@ -43,10 +43,19 @@ profile apparmor.systemd @{exec_path} {
|
||||||
@{PROC}/@{pids}/maps r,
|
@{PROC}/@{pids}/maps r,
|
||||||
@{PROC}/@{pids}/mounts r,
|
@{PROC}/@{pids}/mounts r,
|
||||||
@{PROC}/mounts r,
|
@{PROC}/mounts r,
|
||||||
@{PROC}/sys/kernel/apparmor_restrict_unprivileged_userns r,
|
|
||||||
|
|
||||||
/dev/tty rw,
|
/dev/tty rw,
|
||||||
|
|
||||||
|
profile sysctl {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{sbin}/sysctl mr,
|
||||||
|
|
||||||
|
@{PROC}/sys/kernel/apparmor_restrict_unprivileged_userns r,
|
||||||
|
|
||||||
|
include if exists <local/apparmor.systemd_sysctl>
|
||||||
|
}
|
||||||
|
|
||||||
include if exists <local/apparmor.systemd>
|
include if exists <local/apparmor.systemd>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue