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

Fedora 40 - libscap: bpf_load_program() event=raw_tracepoint/filler/sys_poll_x: Operation not permitted #2094

Closed
albe19029 opened this issue Oct 8, 2024 · 5 comments · Fixed by #2095
Labels
kind/bug Something isn't working
Milestone

Comments

@albe19029
Copy link
Contributor

When I build bpf driver on fedora:40 image and then try to run it it get next error:

libscap: bpf_load_program() event=raw_tracepoint/filler/sys_poll_x: Operation not permitted

On fedora:39 and older everything is working OK.

I have checked the code, and this patch resolved issue:
fedora40.patch

Probably it is because of update of clang, as in version fedora:39 we have clang-17.0.1, and in fedora:40 we have clang-18.1.8.

Is it possible to add this path to master, to be able to build correct bpf driver for fedora:40 and higher, as in fedora 41 it is not working now also.

@albe19029 albe19029 added the kind/bug Something isn't working label Oct 8, 2024
@albe19029
Copy link
Contributor Author

Here is my PROG LOAD LOG:

prog_load_log.txt

@Andreagit97
Copy link
Member

ei @albe19029 thank you for this! Usually we suggest to use the modern-ebpf with recent distros like fedora 40/41 but since the patch you are proposing seems really simple we could apply it, WDYT @FedeDP ?

@FedeDP
Copy link
Contributor

FedeDP commented Oct 8, 2024

Oh wow, yep the patch is really small! @albe19029 care to open a PR?

@FedeDP
Copy link
Contributor

FedeDP commented Oct 8, 2024

/milestone next-driver

@albe19029
Copy link
Contributor Author

Created pull request #2095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants