-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test the fix for #354. A rules file has a event-specific rule first and a catchall rule second. Without the changes in draios/sysdig#1103, the first rule does not match the event.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- rule: open_dev_null | ||
desc: Any open of the file /dev/null | ||
condition: evt.type=open and fd.name=/dev/null | ||
output: An open of /dev/null was seen (command=%proc.cmdline evt=%evt.type %evt.args) | ||
priority: INFO | ||
|
||
- rule: dev_null | ||
desc: Anything related to /dev/null | ||
condition: fd.name=/dev/null | ||
output: Something related to /dev/null was seen (command=%proc.cmdline evt=%evt.type %evt.args) | ||
priority: INFO | ||
warn_evttypes: false |