-
Notifications
You must be signed in to change notification settings - Fork 389
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
security_inode_create Load Failure :operation not permitted #3278
Comments
hi, thanks for the report.. I reproduced that even without your dentry change.. checking on the fix now |
instead of dentry I put nop which bypassed the arg filtering and override security_inode_create, also.. for some reason I thought the dentry #2741 change already made it in, |
Thanks! do you think the issue lies with the filter? If I change the
is there a plan to merge |
I think the filter passed and
dir structure is done by the time we load the program, so this one does not cause the issue
check #2741 (comment) |
What happened?
Error: failed to add tracing policy: rpc error: code = Unknown desc = sensor generic_kprobe from collection file-tamper-inode failed to load: failed prog /usr/local/lib/tetragon/bpf/bpf_generic_kprobe_v511.o kern_version 331672 loadInstance: pinning link '/sys/fs/bpf/tetragon/file-tamper-inode/generic_kprobe/security_inode_create/link' failed: operation not permitted
But another func security_inode_mkdir works well.
Tetragon Version
Base on the latest main branch and https://github.com/cilium/tetragon/pull/2741 build.
Kernel Version
Linux 5.15.0-113-generic
Kubernetes Version
No response
Bugtool
time="2025-01-07T15:24:09+08:00" level=info msg="saving init info"
time="2025-01-07T15:24:09+08:00" level=info msg="retrieving lib directory" libDir=/usr/local/lib/tetragon/bpf/
time="2025-01-07T15:24:09+08:00" level=warning msg="not an object file, ignoring" path=/usr/local/lib/tetragon/bpf/
time="2025-01-07T15:24:12+08:00" level=warning msg="no btf filename in tetragon config, attempting to fall back to /sys/kernel/btf/vmlinux"
time="2025-01-07T15:24:12+08:00" level=info msg="btf file added" btfFname=/sys/kernel/btf/vmlinux
time="2025-01-07T15:24:13+08:00" level=info msg="tetragon log file added" exportFname=/var/log/tetragon/tetragon.log
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd=/usr/bin/dmesg dstFname=dmesg.out ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev lo ingress" dstFname=tc-info.lo.ingress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev lo egress" dstFname=tc-info.lo.egress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev eth0 ingress" dstFname=tc-info.eth0.ingress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev eth0 egress" dstFname=tc-info.eth0.egress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev docker0 ingress" dstFname=tc-info.docker0.ingress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/sbin/tc filter show dev docker0 egress" dstFname=tc-info.docker0.egress ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/local/lib/tetragon/bpftool map show -j" dstFname=bpftool-maps.json ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/local/lib/tetragon/bpftool prog show -j" dstFname=bpftool-progs.json ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/local/lib/tetragon/bpftool cgroup tree -j" dstFname=bpftool-cgroups.json ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="Skipping gops dump info as daemon is running without gops, use --gops-address to enable gops"
time="2025-01-07T15:24:13+08:00" level=warning msg="failed to open policyfilter map" error="no such file or directory"
time="2025-01-07T15:24:13+08:00" level=info msg="dumped tracing policies in tracing-policies.json"
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/bin/pmap -x 237264" dstFname=pmap.out ret=0
time="2025-01-07T15:24:13+08:00" level=info msg="cgroup file added" file=memory.current
time="2025-01-07T15:24:13+08:00" level=info msg="cgroup file added" file=memory.stat
time="2025-01-07T15:24:13+08:00" level=info msg="BPF maps checks added" file=debugmaps.json
time="2025-01-07T15:24:13+08:00" level=info msg="executed command" cmd="/usr/bin/cat /sys/kernel/tracing/trace" dstFname=trace ret=0tetragon-bugtool.tar.gz
Relevant log output
Anything else?
my code repo
The text was updated successfully, but these errors were encountered: