Fix broken SELinux policy on Fedora >=41 systems

`sbindir` can be both `/usr/sbin` or `/usr/bin` depending on the used OS
hence we need to make sure that this pattern matches on both paths.
This commit is contained in:
Yonas Habteab 2025-05-05 11:17:35 +02:00
parent 33824c2acc
commit 241e1f9437

View File

@ -6,7 +6,8 @@
/etc/icinga2/scripts(/.*)? -- gen_context(system_u:object_r:nagios_notification_plugin_exec_t,s0)
/usr/sbin/icinga2 -- gen_context(system_u:object_r:icinga2_exec_t,s0)
/usr/s?bin/icinga2 -- gen_context(system_u:object_r:icinga2_exec_t,s0)
/usr/lib/icinga2/sbin/icinga2 -- gen_context(system_u:object_r:icinga2_exec_t,s0)
/usr/lib/icinga2/safe-reload -- gen_context(system_u:object_r:icinga2_exec_t,s0)