Skip to content

Commit

Permalink
Let nrpe setuid to nagios.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstemm committed Jan 18, 2018
1 parent 62a29fd commit aee0da7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/falco_rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,9 @@
(user.name=nfsnobody and evt.arg.uid=nfsnobody) or
(user.name=postgres and evt.arg.uid=postgres))

- macro: nrpe_becoming_nagios
condition: (proc.name=nrpe and evt.arg.uid=nagios)

# In containers, the user name might be for a uid that exists in the
# container but not on the host. (See
# https://github.com/draios/sysdig/issues/954). So in that case, allow
Expand All @@ -1408,6 +1411,7 @@
and not proc.name in (known_setuid_binaries, userexec_binaries, mail_binaries, docker_binaries,
nomachine_binaries)
and not java_running_sdjagent
and not nrpe_becoming_nagios
output: >
Unexpected setuid call by non-sudo, non-root program (user=%user.name cur_uid=%user.uid parent=%proc.pname
command=%proc.cmdline uid=%evt.arg.uid)
Expand Down

0 comments on commit aee0da7

Please sign in to comment.