Re: [SOLVED] systemd[1]: bpf-restrict-fs: Failed to load BPF object: No such file or directory
On 01/10/25 at 20:55, Franco Martelli wrote:
Thanks, I did an initramfs hook that it adds the libraries mentioned in
the previous email and changed the kernel configuration adding KPROBE=y
and PROBE_EVENTS_BTF_ARGS=y and the Systemd's error message is gone.
Sadly now a warning instead is returned by Systemd:
systemd[1]: bpf-restrict-fs: Failed to link program; assuming BPF LSM is
not available.
I was thinking to give up. Does anybody know which Systemd's features I
lose if BPF and LSM are disabled in the Linux kernel? Is it a big
trouble for the entire operating system
FYI I've solved enabling the kernel symbols listed below in my
customized kernel configuration:
CONFIG_FUNCTION_TRACER
CONFIG_STACK_TRACER
CONFIG_MMIOTRACE
CONFIG_FTRACE_SYSCALLS
CONFIG_TRACER_SNAPSHOT
CONFIG_BLK_DEV_IO_TRACE
CONFIG_SYNTH_EVENTS
CONFIG_HIST_TRIGGERS
Now "dmesg" correctly reports:
systemd[1]: bpf-restrict-fs: LSM BPF program attached
Sadly I still don't know what this log message means for Systemd. If
someone has any clue about, I'll be grateful whether he could give me an
explanation.
Thanks, kind regards.
--
Franco Martelli
Reply to: