mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-05 08:40:52 +00:00
fix(macro truncate_shell_history): avoid false positives from .zsh_history.new and .LOCK files
Signed-off-by: m4wh6k m4wh6k@users.noreply.github.com
This commit is contained in:
@@ -2584,7 +2584,7 @@
|
|||||||
condition: >
|
condition: >
|
||||||
(open_write and (
|
(open_write and (
|
||||||
fd.name contains "bash_history" or
|
fd.name contains "bash_history" or
|
||||||
fd.name contains "zsh_history" or
|
fd.name endswith "zsh_history" or
|
||||||
fd.name contains "fish_read_history" or
|
fd.name contains "fish_read_history" or
|
||||||
fd.name endswith "fish_history") and evt.arg.flags contains "O_TRUNC")
|
fd.name endswith "fish_history") and evt.arg.flags contains "O_TRUNC")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user