evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.91k stars 509 forks source link

Error while enabling probe descriptor for opensnitch_exec_probe: write /sys/kernel/debug/tracing/kprobe_events: no such file or directory #276

Closed squalou closed 3 years ago

squalou commented 5 years ago

Hi,

I've read similar issues #214 #235 for instances, but none of which breing any solution.

I'm running a 4.19 LTS kernel.

Compilation works fine, but I can't start the daemon.

[2019-08-08 11:51:14]  IMP  Starting opensnitch-daemon v1.0.0b
[2019-08-08 11:51:14]  !!!  Error while enabling probe descriptor for opensnitch_exec_probe: write /sys/kernel/debug/tracing/kprobe_events: no such file or directory

I'm runing Arch, these files do exist, debugs is mounted, Secure Boot is OFF in bios (was a suggestion in another issue)

Will gladly help track this down if I can,

regards

squalou commented 4 years ago

Hi, just to mention that the issue persists.

I've seen other arch users starting the daemon successfully so there's probably something missing on my system ... no idea what.

gustavo-iniguez-goya commented 4 years ago

In that scenario, we should probably fallback to parse /proc

Can you post the output of "mount | grep debugfs" command? I've checked it in Suse(>=11), Debian (>=8), Ubuntu (>=13), Fedora (>=21), RHEL (>=7) and CentOS (>=7.0) and debugfs is on in all of them.

squalou commented 4 years ago

hi

debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
gustavo-iniguez-goya commented 4 years ago

compile this branch and see if it works on your system please: https://github.com/gustavo-iniguez-goya/opensnitch/tree/main

squalou commented 4 years ago

I tried, it's promising indeed : daemon starts, no errors !

I managed to run an old UI I still had installed, and had issues with unresponsive buttons.

... so I tried to build / instll clean this branch, (using a virtualenv and not sudo pip install, see other issue about this)

Tried from scratch completely : make never succeded. Python has issues.

ERROR: No matching distribution found for sip<4.20,>=4.19.4 (from pyqt5==5.10.1->-r requirements.txt (line 4))

Upgrading qt may hel, or not, no idea, right now with pyqt 5.11.2 it stalls there :

  Building wheel for grpcio-tools (setup.py) ... /

seems it will never end ... but it finishes and seems to work fine !

I have a font-size issue (gui is really small), but... I can test if it works at last

gustavo-iniguez-goya commented 4 years ago

good news! :)

gustavo-iniguez-goya commented 3 years ago

Fixed with latest version.