-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
execsnoop doesn't work with kernel 4.17+ #93
Comments
Huh, so you say that is won't work on most modern installations? I've just spent half an hour trying to make it work on ubuntu 18.04 with 5.3 kernel... |
I confirmed this on Centos 8 with 4.18 kernel and Redhat 8.1 with 4.18 kernel. 46758 41533 /usr/lib/systemd/systemd-cgroups-agent /user.slice/user-1000.slice/[email protected]/tracker-extract.service
46791 46775 /usr/lib/systemd/systemd-cgroups-agent /system.slice/systemd-hostnamed.service Changing the system call being probed from <...>-49283 [000] .... 41154.763005: exec: (__x64_sys_execve+0x0/0x50) filename="@"V" arg1=(fault) arg2="" arg3=" This could be because from 4.17+, arguments are not sent through registers directly but as a part of pt_regs struct which is passed instead. |
Without
|
If you still have an issue, try this version of execsnoop https://github.com/iovisor/bcc/blob/master/tools/execsnoop.py that is maintained by bcc and looks more recent |
Same here on Arch
|
Any update on this issue please ? |
hi
would be nice if it would also work on more recent kernel versions. I have tried changing the makeprobe call use __x64_sys_execve, but then half the output is gibberish. Unsure on how I have to adjust the output format of the probe.
The text was updated successfully, but these errors were encountered: