rule(Write below root): add mysqlsh

Let mysqlsh write below /root/.mysqlsh.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
This commit is contained in:
Mark Stemm 2020-08-27 17:33:42 -07:00 committed by poiana
parent 7effc02c60
commit fb5e13c694

View File

@ -1406,6 +1406,9 @@
- macro: runc_writing_var_lib_docker - macro: runc_writing_var_lib_docker
condition: (proc.cmdline="runc:[1:CHILD] init" and evt.arg.filename startswith /var/lib/docker) condition: (proc.cmdline="runc:[1:CHILD] init" and evt.arg.filename startswith /var/lib/docker)
- macro: mysqlsh_writing_state
condition: (proc.name=mysqlsh and fd.directory=/root/.mysqlsh)
- rule: Write below root - rule: Write below root
desc: an attempt to write to any file directly below / or /root desc: an attempt to write to any file directly below / or /root
condition: > condition: >
@ -1426,6 +1429,7 @@
and not calico_writing_state and not calico_writing_state
and not rancher_writing_root and not rancher_writing_root
and not runc_writing_exec_fifo and not runc_writing_exec_fifo
and not mysqlsh_writing_state
and not known_root_conditions and not known_root_conditions
and not user_known_write_root_conditions and not user_known_write_root_conditions
and not user_known_write_below_root_activities and not user_known_write_below_root_activities