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

[v0.21.0] fix: network event context #4029

Merged

Conversation

NDStrahilevitz
Copy link
Collaborator

Backport of #4027

Commit f806cb4 changed context initialization to occur in the submit
stage. However, network events do not have access to that context during
their submit stage (since they happen in a cgroup_skb program).

Therefore, add a call to init_task_context in the pre cgroup bpf program
(cgroup_bpf_run_filter_skb).

In addition add a validation in the e2e tests so that task context
initialization in network events doesn't break.

commit: cf391b4 (main), cherry-pick
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

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

LGTM

@NDStrahilevitz NDStrahilevitz merged commit 8c14a5f into aquasecurity:v0.21.0 May 7, 2024
33 checks passed
@geyslan geyslan added backport Label for backport PRs and removed backport/v0.21.0 labels Dec 9, 2024
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.

3 participants