mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-26 06:58:00 +01:00
feat(profile): small profile improvments.
This commit is contained in:
parent
f814bb4caf
commit
7c148fca95
5 changed files with 5 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
abi <abi/4.0>,
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/systemd1
|
||||
dbus send bus=system path=/org/freedesktop/systemd1{,/**}
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
member={Get,GetAll}
|
||||
peer=(name=org.freedesktop.systemd1, label="@{p_systemd}"),
|
||||
|
|
|
@ -41,6 +41,7 @@ profile blkid @{exec_path} flags=(attach_disconnected) {
|
|||
@{PROC}/swaps r,
|
||||
|
||||
# Other possible location of the cache file
|
||||
/dev/.blkid.tab.old rwl -> /dev/.blkid.tab,
|
||||
/dev/.blkid.tab{,-@{rand6}} rw,
|
||||
/dev/blkid.tab.old rwl -> /dev/blkid.tab,
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ profile issue-generator @{exec_path} {
|
|||
/etc/sysconfig/issue-generator r,
|
||||
|
||||
@{run}/agetty.reload w,
|
||||
@{run}/issue r,
|
||||
@{run}/issue rw,
|
||||
@{run}/issue.@{rand10} rw,
|
||||
@{run}/issue.d/{,**} r,
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ profile useradd @{exec_path} {
|
|||
# To create user dirs and copy files from /etc/skel/ to them
|
||||
@{HOME}/ rw,
|
||||
@{HOME}/.** w,
|
||||
@{HOME}/**/ r,
|
||||
/var/lib/*/{,*} rw,
|
||||
/etc/skel/{,.**} r,
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ profile w @{exec_path} {
|
|||
@{sys}/devices/system/node/node@{int}/meminfo r,
|
||||
|
||||
@{run}/systemd/sessions/ r,
|
||||
@{run}/systemd/sessions/@{int} r,
|
||||
@{run}/systemd/sessions/* r,
|
||||
|
||||
@{PROC}/ r,
|
||||
@{PROC}/@{pids}/cmdline r,
|
||||
|
|
Loading…
Reference in a new issue