relationship between parameters #3121
Replies: 2 comments 3 replies
-
@skandbug If I understood your question correctly, you're asking all filters are AND'ed (reducing the scope of what would be filtered), correct ? That is why we have recently created the "multiple scopes" feature. We are in the middle of a big change in the project (turning all filtering capabilities into "policies"). LONG STORY SHORT:
and then we faced what you're asking about. All the filters are ANDed up to this point, right ? Then we created the "multiple scopes" feature which allowed you to do something like:
and all filters applied to But Providing up to 64 scopes in the cmdline isn't a great experience. Then we consider the cmdline is a SINGLE SCOPE (scope 1 lets say). Other scopes can only be provided by the feature we are creating called
zero.yaml name: zero
description: zero
scope:
- global
defaultAction: log
rules:
- event: openat
filter:
- args.pathname=/etc/passwd one.yaml name: one
description: one
scope:
- uid=0
- comm=bash
- follow
defaultAction: log
rules:
- event: security_file_open
filter:
- args.pathname=/etc/passwd ANd execute tracee with:
And both files would be loaded as policies. If you read the YAML file you have basically 2 sets of filters:
For now there is a single action: to log. In the future there will be actions such as block, kill, call script, etc... So if you want filters that do not reduce the intersection among them, you should create a difference policy for each workload you're interested in. I hope this clarifies a bit (since this is all under development). More documentation at: |
Beta Was this translation helpful? Give feedback.
-
I have a need like this:
Don't know if it is correct. Or how should I build it. |
Beta Was this translation helpful? Give feedback.
-
The tool works great, but there is one problem that I don't quite understand.
tracee -f....
Are all subsequent filters and parameters related to
and
orprogressive
(the scope is constantly shrinking)?Beta Was this translation helpful? Give feedback.
All reactions