general_initial

This commit is contained in:
nobody43 2023-02-19 23:40:41 +00:00 committed by Alex
parent 3eb8dd2811
commit a873af1f26
36 changed files with 640 additions and 110 deletions

View file

@ -46,6 +46,10 @@ profile logrotate @{exec_path} flags=(attach_disconnected) {
/{usr/,}bin/mysqladmin rPUx,
/{usr/,}bin/systemd-tty-ask-password-agent rPx,
/{usr/,}lib/php/php[7-8].[3-4]-fpm-reopenlogs rPUx,
/etc/init.d/nginx rPUx,
/{usr/,}{s,}bin/squid rPUx,
/{usr/,}bin/pgrep rCx -> pgrep,
# no new privs
#/{usr/,}bin/systemctl rCx -> systemctl,
@ -98,5 +102,18 @@ profile logrotate @{exec_path} flags=(attach_disconnected) {
include if exists <local/logrotate_systemctl>
}
profile pgrep {
include <abstractions/base>
/{usr/,}bin/pgrep mr,
# The /proc/ dir and the cmdline file have to be radable to avoid pgrep segfault.
@{PROC}/ r,
@{PROC}/@{pids}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
include if exists <local/logrotate_pgrep>
}
include if exists <local/logrotate>
}