Let duply write below /etc/duply

It's a shell script that runs touch so the detection is slightly more
complicated.
This commit is contained in:
Mark Stemm
2017-11-07 09:43:07 -08:00
parent 6aae17600f
commit 480ba4e0f8

View File

@@ -594,6 +594,9 @@
- macro: add_shell_writing_shells_tmp
condition: (proc.name=add-shell and fd.name=/etc/shells.tmp)
- macro: duply_writing_exclude_files
condition: (proc.name=touch and proc.pcmdline startswith "bash /usr/bin/duply" and fd.name startswith "/etc/duply")
# Add conditions to this macro (probably in a separate file,
# overwriting this macro) to allow for specific combinations of
# programs writing below specific directories below
@@ -640,6 +643,7 @@
and not networkmanager_writing_resolv_conf
and not run_by_chef
and not add_shell_writing_shells_tmp
and not duply_writing_exclude_files
and not parent_supervise_running_multilog
and not pki_realm_writing_realms
and not htpasswd_writing_passwd