Allow systemd --version as a "user mgmt binary"

systemd --version might be run in some unusual containerized
environments, so exclude it.
This commit is contained in:
Mark Stemm 2017-09-19 16:54:48 -07:00
parent 7c8a85158a
commit 00dd3c47c0

View File

@ -824,7 +824,8 @@
not proc.name in (su, sudo, lastlog) and not container and not proc.name in (su, sudo, lastlog) and not container and
not proc.pname in (cron_binaries, systemd, run-parts) and not proc.pname in (cron_binaries, systemd, run-parts) and
not proc.cmdline startswith "passwd -S" and not proc.cmdline startswith "passwd -S" and
not proc.cmdline startswith "useradd -D" not proc.cmdline startswith "useradd -D" and
not proc.cmdline startswith "systemd --version"
output: > output: >
User management binary command run outside of container User management binary command run outside of container
(user=%user.name command=%proc.cmdline parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4]) (user=%user.name command=%proc.cmdline parent=%proc.pname gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4])