-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events and Scope flags #3262
Merged
Merged
Events and Scope flags #3262
Commits on Jul 10, 2023
-
feat(cmd/flags)!: split filter flag
This commit splits the '--filter' flag into two new flags: '--scope' and '--events'. The '--scope' flag is used to specify the scope of the events to be captured like 'comm', 'binary', 'pid', 'uid', 'mntns', 'pidns', 'uts', 'tree', 'follow' and 'container', while the '--events' flag is used to specify the events and their userland filters like 'args', 'retval' and 'context'. It also removes the set option previously available for the '--filter' flag, as it is no longer needed. The '--events' flag is now used to specify the sets of events to be captured, e.g. '--events fs'. Other chores: - analyze '--event' flag now is '--events', to be consistent. - polcy_file.go validateContext() is removed since we have similar validation in further stages. - Relocates unit tests from flags_test.go to respective new correlated files, making it easier to maintain and extend and changes integration tests to use PolicyFile instead of Policy. BREAKING CHANGE: '--filter' flag is now replaced by '--scope' and '--events' flags and analyze '--event' flag is now '--events'. Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 3429c8e - Browse repository at this point
Copy the full SHA 3429c8eView commit details
Commits on Jul 12, 2023
-
Update docs/docs/config/overview.md
Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for deab709 - Browse repository at this point
Copy the full SHA deab709View commit details -
Update docs/docs/events/custom/analyze.md
Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7b35676 - Browse repository at this point
Copy the full SHA 7b35676View commit details -
Update docs/docs/filters/filtering.md
Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 7ed9108 - Browse repository at this point
Copy the full SHA 7ed9108View commit details -
Update pkg/cmd/flags/filter.go
Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8b05725 - Browse repository at this point
Copy the full SHA 8b05725View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c0729e - Browse repository at this point
Copy the full SHA 5c0729eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe2a813 - Browse repository at this point
Copy the full SHA fe2a813View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.