mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-28 02:41:31 +00:00
Make safe etc directories a list.
This way it can more easily be modified/added to.
This commit is contained in:
parent
cb7dab61e8
commit
12de2e4119
@ -377,6 +377,9 @@
|
|||||||
priority: ERROR
|
priority: ERROR
|
||||||
tags: [filesystem]
|
tags: [filesystem]
|
||||||
|
|
||||||
|
- list: safe_etc_dirs
|
||||||
|
items: [/etc/cassandra, /etc/ssl/certs/java, /etc/logstash, /etc/nginx/conf.d, /etc/container_environment]
|
||||||
|
|
||||||
- macro: write_etc_common
|
- macro: write_etc_common
|
||||||
condition: >
|
condition: >
|
||||||
etc_dir and evt.dir = < and open_write
|
etc_dir and evt.dir = < and open_write
|
||||||
@ -391,8 +394,7 @@
|
|||||||
gen_resolvconf., update-ca-certi, certbot, runsv,
|
gen_resolvconf., update-ca-certi, certbot, runsv,
|
||||||
qualys-cloud-ag)
|
qualys-cloud-ag)
|
||||||
and not proc.pname in (sysdigcloud_binaries, sendmail_config_binaries)
|
and not proc.pname in (sysdigcloud_binaries, sendmail_config_binaries)
|
||||||
and not fd.directory in (/etc/cassandra, /etc/ssl/certs/java, /etc/logstash,
|
and not fd.directory in (safe_etc_dirs)
|
||||||
/etc/nginx/conf.d, /etc/container_environment)
|
|
||||||
and not fd.name in (/etc/container_environment.sh, /etc/container_environment.json)
|
and not fd.name in (/etc/container_environment.sh, /etc/container_environment.json)
|
||||||
and not ansible_running_python
|
and not ansible_running_python
|
||||||
and not python_running_denyhosts
|
and not python_running_denyhosts
|
||||||
|
Loading…
Reference in New Issue
Block a user