feat(profile): more use @{etc_ro} when we know it is needed.
This commit is contained in:
parent
4e73f7209f
commit
8806030a0a
30 changed files with 49 additions and 45 deletions
|
|
@ -98,9 +98,9 @@ profile snapd @{exec_path} {
|
|||
/usr/share/dbus-1/services/*snap* r,
|
||||
/usr/share/polkit-1/actions/{,**/} r,
|
||||
|
||||
@{etc_ro}/environment r,
|
||||
/etc/apparmor.d/*snapd.snap* r,
|
||||
/etc/dbus-1/system.d/{,**/} r,
|
||||
/etc/environment r,
|
||||
/etc/fstab r,
|
||||
/etc/mime.types r,
|
||||
/etc/modprobe.d/{,**/} r,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ profile useradd @{exec_path} {
|
|||
@{bin}/pam_tally2 rCx -> pam_tally2,
|
||||
|
||||
/etc/default/useradd r,
|
||||
/etc/login.defs r,
|
||||
@{etc_ro}/login.defs r,
|
||||
|
||||
/etc/{passwd,shadow,gshadow,group,subuid,subgid} rw,
|
||||
/etc/{passwd,shadow,gshadow,group,subuid,subgid}- w,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ profile userdel @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/login.defs r,
|
||||
@{etc_ro}/login.defs r,
|
||||
|
||||
/etc/{passwd,shadow,gshadow,group,subuid,subgid} rw,
|
||||
/etc/{passwd,shadow,gshadow,group,subuid,subgid}.@{pid} w,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ profile usermod @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{bin}/nscd rix,
|
||||
|
||||
/etc/login.defs r,
|
||||
@{etc_ro}/login.defs r,
|
||||
/etc/subuid r,
|
||||
|
||||
/etc/{passwd,shadow,gshadow,group} rw,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ profile vipw-vigr @{exec_path} {
|
|||
@{sh_path} rix,
|
||||
@{editor_path} rCx -> editor,
|
||||
|
||||
/etc/login.defs r,
|
||||
@{etc_ro}/login.defs r,
|
||||
|
||||
/etc/{passwd,shadow,gshadow,group}{,.edit} rw,
|
||||
/etc/{passwd,shadow,gshadow,group}.@{pid} rw,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue