SELinux: Allow Icinga 2 to send SIGTERM signal to nagios plugins#10535
SELinux: Allow Icinga 2 to send SIGTERM signal to nagios plugins#10535yhabteab merged 1 commit intoIcinga:masterfrom
SIGTERM signal to nagios plugins#10535Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
@cla-bot check |
This comment was marked as resolved.
This comment was marked as resolved.
|
@cla-bot check |
yhabteab
left a comment
There was a problem hiding this comment.
Hi @ETES-Stuttgart, thanks for your contribution!
However, Icinga 2 should still be able to send SIGKILL signals even without the changes made in this PR. This privilege is granted by the following interface...
icinga2/tools/selinux/icinga2.if
Lines 361 to 368 in 3591ca4
...which is used in the type enforcement file here:
icinga2/tools/selinux/icinga2.te
Lines 155 to 162 in 3591ca4
So even without the changes in this PR, Icinga 2 should still have the necessary permissions to send SIGKILL signals to the plugins it executes. Can you please share the SELinux denial messages this PR is intended to address? Even though the PR title suggests it's about allowing SIGKILL, the actual changes you made seem to grant full signal sending capabilities, so maybe there's a different signal involved in the denials you're encountering.
|
Hi @yhabteab, We see the following audit message on the servers: |
|
Thanks for sharing! That AVC denial message indeed indicates that the Can you please fix the |
|
To summarize what @yhabteab wrote, I would recommend changing: to: in icinga2.if. |
This comment was marked as resolved.
This comment was marked as resolved.
8e73334 to
b27b0c0
Compare
SIGTERM signal to nagios plugins
|
Ah, sorry! Missed to point that out yesterday. Can you please add yourself to the AUTHORS file to make the GitHub Action happy? Just follow the existing format and sort alphabetically. Thanks! |
b27b0c0 to
1000253
Compare
1000253 to
e4b887b
Compare
|
I hope I've got everything now. Thank you for your patience. |
No problem, looks fine now. Thanks! |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin support/2.15
git worktree add -d .worktree/backport-10535-to-support/2.15 origin/support/2.15
cd .worktree/backport-10535-to-support/2.15
git switch --create backport-10535-to-support/2.15
git cherry-pick -x e4b887b5b67aab9e81fe7d57403b26d99fde331c |
It may happen that a check runs for too long and then needs to be terminated by Icinga. To do this, Icinga must send a kill signal to the check. However, this is not permitted by the current SELinux policy.