Enable BPF LSM
Linux kernel since 5.7 allows to write eBPF programs which can be attached to LSM hooks. More details here:
https://www.kernel.org/doc/html/v5.9/bpf/bpf_lsm.html
There are already projects trying to leverage that:
- systemd with the restrict-fs feature
- https://github.com/linux-lock/bpflock
- https://github.com/rancher-sandbox/lockc
However, BPF LSM has to be enabled by adding bpf
to CONFIG_LSM
.
That was already done in:
- Arch Linux
- Fedora
- openSUSE
Without setting that variable in default configs, users who want to try the mentioned projects have to manually edit kernel parameters in /etc/default/grub, which is not really user-friendly.
Could we enable BPF LSM in Manjaro as well?