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

enforcer: fix multiple prog issue with fmod_ret #2524

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Jun 7, 2024

When using fmod_ret, we need to load multiple programs -- one for each attach point we want to enforce.

In the current implementation, each program would use its own map which means that the enforcer notification worked only for a single program.

This patch fixes the code so that all programs use the same map. It also adds a test.

enforcer: fix issue when using multiple calls with fmod_ret

When using fmod_ret, we need to load multiple programs -- one for each
attach point we want to enforce.

In the current implementation, each program would use its own map which
means that the enforcer notification worked only for a single program.

This patch fixes the code so that all programs use the same map. It also
adds a test.

Signed-off-by: Kornilios Kourtis <kornilios@isovalent.com>
@kkourt kkourt added the release-note/bug This PR fixes an issue in a previous release of Tetragon. label Jun 7, 2024
@kkourt kkourt requested a review from a team as a code owner June 7, 2024 09:02
@kkourt kkourt requested a review from kevsecurity June 7, 2024 09:02
Copy link

netlify bot commented Jun 7, 2024

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit fe2079f
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/6662cc8f599bf40009f84dba
😎 Deploy Preview https://deploy-preview-2524--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kkourt kkourt requested a review from olsajiri June 7, 2024 09:04
@kkourt kkourt added the needs-backport/1.1 This PR needs backporting to 1.1 label Jun 7, 2024
@kkourt kkourt merged commit 7bf5502 into main Jun 7, 2024
45 checks passed
@kkourt kkourt deleted the pr/kkourt/enforcer-multi-calls-fix branch June 7, 2024 09:49
@kkourt kkourt mentioned this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport/1.1 This PR needs backporting to 1.1 release-note/bug This PR fixes an issue in a previous release of Tetragon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants