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

Add user_known_mount_in_privileged_containers macro #1930

Conversation

mmoyerfigma
Copy link
Contributor

What type of PR is this?

/kind feature
/kind rule-update

Any specific area of the project related to this PR?

/area rules

What this PR does / why we need it:

This adds a new macro user_known_mount_in_privileged_containers which
allows the easier user-defined exclusions for the "Mount Launched in
Privileged Container" rule.

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

This would be cleaner with exceptions, but this feature is not used in the default ruleset yet, if I understand correctly.

Does this PR introduce a user-facing change?:

rule(Mount Launched in Privileged Container): added allowlist macro user_known_mount_in_privileged_containers.

@poiana
Copy link
Contributor

poiana commented Mar 10, 2022

Welcome @mmoyerfigma! It looks like this is your first PR to falcosecurity/falco 🎉

@poiana poiana added the size/XS label Mar 10, 2022
@mmoyerfigma mmoyerfigma force-pushed the add-user_known_mount_in_privileged_containers-macro branch from a96c78b to f851897 Compare March 10, 2022 04:06
This adds a new macro `user_known_mount_in_privileged_containers` which
allows the easier user-defined exclusions for the "Mount Launched in
Privileged Container" rule.

This would be cleaner with the exclusions feature, but this feature
is not used in the default ruleset yet, if I understand correctly.

Signed-off-by: Matt Moyer <[email protected]>
@mmoyerfigma mmoyerfigma force-pushed the add-user_known_mount_in_privileged_containers-macro branch from f851897 to 8e86d89 Compare March 10, 2022 04:18
@poiana
Copy link
Contributor

poiana commented Mar 10, 2022

LGTM label has been added.

Git tree hash: 008e7177a65d0ccc03f09d61db2f3ff0d2d26464

@mmoyerfigma
Copy link
Contributor Author

Thanks @Kaizhe! Are there any plans to add exception support for all the default rules?

@jasondellaluce
Copy link
Contributor

/milestone 0.32.0

@poiana poiana added this to the 0.32.0 milestone Mar 11, 2022
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Mar 17, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: leogr, mmoyerfigma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 36acd6d into falcosecurity:master Mar 17, 2022
@mmoyerfigma mmoyerfigma deleted the add-user_known_mount_in_privileged_containers-macro branch March 23, 2022 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants