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
fix(modern): perform an exact check on BPF_TRACE_RAW_TP
attach type
#1404
fix(modern): perform an exact check on BPF_TRACE_RAW_TP
attach type
#1404
Conversation
8d6d537
to
3d60d0e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: 1b6caf1ce9f3dd308f1b7988ad6a69ceadda9f07
|
/hold |
I have addressed the suggestions (thank you @Molter73). The actual solution checks for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: 83335278ad86413233f815bc588b02043156afc4
|
/unhold |
Since we didn't find an agreement in time I would move it to the next release /milestone 0.14.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for refactoring @Andreagit97! Code looks much cleaner this way IMO! Just left one more comment and would like to resolve the comment on pathing before merging, so waiting on @incertum for that one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@Andreagit97 small conflict and we are good to go! |
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
0e01b59
to
79f06b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM label has been added. Git tree hash: 751cb33f7112c0c139664d637e88d390490bfd97
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, Molter73 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 |
/milestone 0.13.3 |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area libscap-engine-modern-bpf
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR performs a more detailed check on the
BPF_TRACE_RAW_TP
attach type. Actuallibbpf_probe_bpf_prog_type(BPF_PROG_TYPE_TRACING, NULL)
checks for theBPF_TRACE_FENTRY
attach type presence, while we need to check for theBPF_TRACE_RAW_TP
one. IfBPF_TRACE_FENTRY
is defined we are sureBPF_TRACE_RAW_TP
is defined as well, in all other cases, we need to search for it in thevmlinux
file.Which issue(s) this PR fixes:
See falcosecurity/falco#2792
Special notes for your reviewer:
Does this PR introduce a user-facing change?: