Article 5KJJ4 bpftrace on ubuntu fails with Kernel lockdown is enabled and set to 'confidentiality'

bpftrace on ubuntu fails with Kernel lockdown is enabled and set to 'confidentiality'

by
clivesa
from LinuxQuestions.org on (#5KJJ4)
I am trying to get my feet wet with bpf. I ran following command on an Ubuntu 20.04

sudo bpftrace -e 'tracepoint:syscalls:sys_enter_open { printf("%s %s\n", comm, str(args->filename)); }'


I get this error

Kernel lockdown is enabled and set to 'confidentiality'. Lockdown mode blocks parts of BPF which makes it impossible for bpftrace to function. Please see https://github.com/iovisor/bpftrace/...sable-lockdown for more details on lockdown and how to disable it.

I did disable lockdown

dmesg | grep -i secure

[ 0.000000] secureboot: Secure boot disabled [ 0.027906] secureboot: Secure boot disabled

cat /sys/kernel/security/lockdown

[none] integrity confidentialitylatest?d=yIl2AUoC8zA latest?i=q67cwQJpzJM:seLlBnHANrs:F7zBnMy latest?i=q67cwQJpzJM:seLlBnHANrs:V_sGLiP latest?d=qj6IDK7rITs latest?i=q67cwQJpzJM:seLlBnHANrs:gIN9vFwq67cwQJpzJM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments