mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-02 07:05:54 +00:00
Let locales.postins write below /etc
locales.postins also writes intermediate files below /etc/ so just it write generally.
This commit is contained in:
@@ -387,9 +387,6 @@
|
|||||||
- macro: fluentd_writing_fluentd_conf
|
- macro: fluentd_writing_fluentd_conf
|
||||||
condition: (proc.name=start-fluentd and fd.name=/etc/fluent/fluent.conf)
|
condition: (proc.name=start-fluentd and fd.name=/etc/fluent/fluent.conf)
|
||||||
|
|
||||||
- macro: locales_postinst_writing_locale_gen
|
|
||||||
condition: (proc.name=locales.postins and fd.name=/etc/locale.gen)
|
|
||||||
|
|
||||||
- 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
|
||||||
@@ -402,14 +399,13 @@
|
|||||||
systemd, systemd-machine, systemd-sysuser,
|
systemd, systemd-machine, systemd-sysuser,
|
||||||
debconf-show, rollerd, bind9.postinst, sv,
|
debconf-show, rollerd, bind9.postinst, sv,
|
||||||
gen_resolvconf., update-ca-certi, certbot, runsv,
|
gen_resolvconf., update-ca-certi, certbot, runsv,
|
||||||
qualys-cloud-ag)
|
qualys-cloud-ag, locales.postins)
|
||||||
and not proc.pname in (sysdigcloud_binaries, sendmail_config_binaries)
|
and not proc.pname in (sysdigcloud_binaries, sendmail_config_binaries)
|
||||||
and not fd.name pmatch (safe_etc_dirs)
|
and not fd.name pmatch (safe_etc_dirs)
|
||||||
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
|
||||||
and not fluentd_writing_fluentd_conf
|
and not fluentd_writing_fluentd_conf
|
||||||
and not locales_postinst_writing_locale_gen
|
|
||||||
|
|
||||||
- rule: Write below etc
|
- rule: Write below etc
|
||||||
desc: an attempt to write to any file below /etc, not in a pipe installer session
|
desc: an attempt to write to any file below /etc, not in a pipe installer session
|
||||||
|
Reference in New Issue
Block a user