Skip to content
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 7 commits into from
Jul 12, 2023
Merged

Commits on Jul 10, 2023

  1. 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>
    geyslan and yanivagman committed Jul 10, 2023
    Configuration menu
    Copy the full SHA
    3429c8e View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. Update docs/docs/config/overview.md

    Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
    geyslan and yanivagman authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    deab709 View commit details
    Browse the repository at this point in the history
  2. Update docs/docs/events/custom/analyze.md

    Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
    geyslan and yanivagman authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    7b35676 View commit details
    Browse the repository at this point in the history
  3. Update docs/docs/filters/filtering.md

    Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
    geyslan and yanivagman authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    7ed9108 View commit details
    Browse the repository at this point in the history
  4. Update pkg/cmd/flags/filter.go

    Co-authored-by: Yaniv Agman <yanivagman@gmail.com>
    geyslan and yanivagman authored Jul 12, 2023
    Configuration menu
    Copy the full SHA
    8b05725 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5c0729e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fe2a813 View commit details
    Browse the repository at this point in the history