-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
eBPF Failed to load /etc/opensnitchd/opensnitch.o: error while loading "kprobe/tcp_v4_connect" (permission denied): #864
Comments
grep CONFIG_FTRACE /boot/config-6.2.0-gentoo-x86_64
|
hi @fraschm1998 , How did you obtain the file Please, post the information that appear here: #774 On the other hand, there're people running opensnitch on Gentoo, did you ask also on Gentoo forums? |
From the Pentoo's ebuild which gets it from: https://dev.pentoo.ch/~blshkv/distfiles/opensnitch_amd64.o grep FTRACE /boot/config-$(uname -r)
grep -E "(KPROBE|BPF)" /boot/config-6.2.0-gentoo-x86_64
|
thank you @fraschm1998 , stop the daemon, and see if and start again the daemon. Could you download this ebpf module and start the daemon with it? https://github.com/evilsocket/opensnitch/actions/runs/4276068016/jobs/7443897035 It's the build 5.19, 1.5.0 from here: https://github.com/evilsocket/opensnitch/actions/runs/4276068016 |
While the daemon is running, I can see that it's there by doing
Tried using the ebpf module as recommended, it seems like the error is no longer there in the logs, however, opensnitch still doesn't intercept any of the connections (just shows a blank opensnitch). Log with new ebpf module:
|
good! login as root via doas/sudo (sudo su, or su -), and cat the kprobe_events file to see the content while the daemon is running: Once the daemon is stopped, that file should be empty. You can't delete that file by the way, it's handled by the kernel. You can modify it but only if it's not locked by any process. Could you post the output of the following command on the "old" eBPF module? regarding the others errors: (I assume that the I'm interested in knowing the cause of this error, maybe the NFQUEUE module is not autoloaded by iptables, or the iptables binary is not installed. |
It is running and when the daemon is stopped, it's empty.
Output of the "old" eBPF module:
It seems to have worked previously for v1.5.3 according to this thread: https://forums.gentoo.org/viewtopic-p-8777076.html?sid=24a64e0c424278b00bb91f756fc4f581 assuming he's using the pentoo ebuild which provides the .o file. |
ok, the kprobes and the module (in principle) looks fine to me. The fact that "our" module works at least discards a problem with kernel 6.2.x. regarding the interception, there should be at least 1 rule in the mangle table: If it's empty try adding it manually: some modules should be loaded for this rule to work:
|
This was the issue, I recompiled my kernel with |
closing as it seems to be resolved. Besides adding it to the wiki I'll add an option to check needed requirements. |
Please, check the FAQ and Known Problems pages before creating the bug report:
https://github.com/evilsocket/opensnitch/wiki/FAQs
https://github.com/evilsocket/opensnitch/wiki/Known-problems
Describe the bug
A clear and concise description of what the bug is.
Include the following information:
To Reproduce
Describe in detail as much as you can what happened.
Steps to reproduce the behavior:
Post error logs:
http://sprunge.us/NzuSey
The text was updated successfully, but these errors were encountered: