feat(profile): small profile improvments.

This commit is contained in:
Alexandre Pujol 2024-11-13 11:25:04 +00:00
parent f814bb4caf
commit 7c148fca95
Failed to generate hash of commit
5 changed files with 5 additions and 3 deletions

View file

@ -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}"),

View file

@ -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,

View file

@ -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,

View file

@ -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,

View file

@ -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,