feat(profiles): use /etc read only variable: etc_ro

This commit is contained in:
Alexandre Pujol 2023-02-04 23:34:29 +00:00
parent 6e56cfccc9
commit bac87f9547
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 33 additions and 32 deletions

View file

@ -40,8 +40,8 @@ profile cron @{exec_path} {
/etc/cron.d/{,*} r,
/etc/crontab r,
/etc/default/locale r,
/etc/environment r,
/etc/security/limits.d/{,**} r,
@{etc_ro}/environment r,
@{etc_ro}/security/limits.d/{,**} r,
/var/spool/cron/crontabs/{,*} r,

View file

@ -50,7 +50,7 @@ profile cron-exim4-base @{exec_path} {
owner @{PROC}/@{pid}/fd/ r,
@{PROC}/1/limits r,
/etc/security/limits.d/ r,
@{etc_ro}/security/limits.d/ r,
include if exists <local/cron-exim4-base>
}

View file

@ -100,7 +100,7 @@ profile cron-popularity-contest @{exec_path} {
owner @{PROC}/@{pids}/loginuid r,
@{PROC}/1/limits r,
/etc/security/limits.d/ r,
@{etc_ro}/security/limits.d/ r,
/var/log/popularity-contest.new w,