mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Merge pull request #10621 from Icinga/missing-selinux-logrotate
SELinux: allow `logrotate` to execute `icinga2` binary
This commit is contained in:
commit
3f431733bd
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||
')
|
||||
|
||||
########################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue