Skip to content

Conversation

YoannGh
Copy link
Contributor

@YoannGh YoannGh commented Aug 29, 2025

What does this PR do?

Add a new operator override that looks at whether a file is access through an overlay mount point when evaluating rules.

To do so this PR allows setting multiple operator overrides on the same field by chaining each operator using a logic OR.

One notable drawback of this solution is that some fields (e.g. exec.file.path) might end up being evaluated multiple times against the exact same value if none of the overrides apply to the event (no symlink, no overlayfs).

Motivation

The goal is to trigger rules such as open.file.path == "/tmp/foo" when the /tmp/foo container file is access through an overlay mount point (e.g. touch /var/lib/docker/overlay2/0123456789abcdef/merged/tmp/foo).

Describe how you validated your changes

Additional Notes

@YoannGh YoannGh requested a review from a team as a code owner August 29, 2025 15:14
@YoannGh YoannGh added team/agent-security category/improvement qa/done QA done before merge and regressions are covered by tests labels Aug 29, 2025
@github-actions github-actions bot added component/system-probe long review PR is complex, plan time to review it labels Aug 29, 2025
@YoannGh YoannGh force-pushed the yoanngh/overlayfs-oo branch from 2a67b09 to 93855aa Compare August 29, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category/improvement changelog/no-changelog component/system-probe long review PR is complex, plan time to review it qa/done QA done before merge and regressions are covered by tests team/agent-security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant