8000 chore: use libbpfgo to check bpf helper func by rscampos · Pull Request #4184 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: use libbpfgo to check bpf helper func #4184

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

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

rscampos
Copy link
Collaborator
@rscampos rscampos commented Jul 11, 2024

1. Explain what the PR does

ee975c0 chore: use libbpfgo to check bpf helper func

Instead of checking kernel symbols, determine if the helper is available
based on the BPF program type. To achieve this, use the
BPFHelperIsSupported() function from libbpfgo.

2. Explain how to test it

3. Other comments

@rscampos rscampos requested a review from geyslan July 11, 2024 18:36
@rscampos rscampos self-assigned this Jul 11, 2024
@rscampos rscampos closed this Jul 11, 2024
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch from 8790795 to 8f6b459 Compare July 11, 2024 19:52
@rscampos rscampos reopened this Jul 11, 2024
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch from 5e299ce to d4ac774 Compare July 11, 2024 20:12
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch 5 times, most recently from cb3b993 to 91169b9 Compare July 12, 2024 15:07
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch from 91169b9 to c94eda9 Compare July 12, 2024 19:21
@rscampos rscampos marked this pull request as draft July 12, 2024 20:34
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch 2 times, most recently from 74b4cb9 to c95101e Compare July 15, 2024 14:55
@rscampos rscampos marked this pull request as ready for review July 15, 2024 15:09
Cop 8000 y link
Member
@geyslan geyslan left a comment

Choose a reason for hiding this comment

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

LGTM

Instead of checking kernel symbols, determine if the helper is available
based on the BPF program type. To achieve this, use the
BPFHelperIsSupported() function from libbpfgo.
@rscampos rscampos force-pushed the bump_libbpfgo_new_feat branch from c95101e to ee975c0 Compare July 15, 2024 19:01
@rscampos rscampos merged commit 9893bde into aquasecurity:main Jul 15, 2024
32 checks passed
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.

2 participants
0