Merge pull request #10621 from Icinga/missing-selinux-logrotate

SELinux: allow `logrotate` to execute `icinga2` binary
This commit is contained in:
Yonas Habteab 2025-11-27 16:21:30 +01:00 committed by GitHub
commit 3f431733bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,7 +242,18 @@ optional_policy(`
')
')
########################################
#
# Logrotate
#
# Allow logrotate to execute the Icinga 2 binary for sending USR1 signal to reopen log files.
optional_policy(`
require {
type logrotate_t;
}
can_exec(logrotate_t, icinga2_exec_t)
')
########################################
#