feat(profile): more use @{etc_ro} when we know it is needed.

This commit is contained in:
Alexandre Pujol 2025-01-25 22:31:29 +01:00
parent 4e73f7209f
commit 8806030a0a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
30 changed files with 49 additions and 45 deletions

View file

@ -23,9 +23,9 @@ profile newgrp @{exec_path} {
@{bin}/@{shells} rUx,
/etc/{passwd,group,shadow,gshadow} r,
@{etc_ro}/login.defs r,
/etc/login.defs r,
/etc/{passwd,group,shadow,gshadow} r,
owner @{PROC}/@{pid}/loginuid r,

View file

@ -16,7 +16,8 @@ profile pwck @{exec_path} flags=(attach_disconnected) {
@{bin}/nscd rix,
/etc/login.defs r,
@{etc_ro}/login.defs r,
/etc/.pwd.lock wk,
/etc/passwd rw,
/etc/passwd.@{int} rw,