Skip to content

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

@albe19029

Description

@albe19029

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions