lockc-project / lockc

Making containers more secure with eBPF and Linux Security Modules (LSM)
https://lockc-project.github.io/
Apache License 2.0
219 stars 19 forks source link

Enable BPF LSM in Linux distros #159

Open vadorovsky opened 2 years ago

vadorovsky commented 2 years ago

Currently Linux distributions don't enable BPF LSM by default. Enabling it requires editing GRUB configuration and providing custom kernel parameter like:

GRUB_CMDLINE_LINUX="lsm=lockdown,capability,bpf"

This is not really convenient and we should rather push distros to enable that.

To change that, we need to add bpf to the CONFIG_LSM list in kernel configs.

Distros support:

akshatagarwl commented 2 years ago

Is this for enabling CONFIG_BPF_LSM or adding bpf to the list of active LSMs through CONFIG_LSM? Since most if not all of the mentioned distros have already enabled CONFIG_BPF_LSM (1, 2, 3)

vadorovsky commented 2 years ago

@humancalico It's for adding bpf to the CONFIG_LSM list, sorry for not being clear.

We've already done it for openSUSE: https://github.com/openSUSE/kernel-source/commit/c2c25b18721866d6211054f542987036ed6e0a50

holyspectral commented 8 months ago

For others who found this issue like me, here is the new ticket for Ubuntu (the original one has expired): https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2054810

dorkamotorka commented 1 week ago

Any progress on the ubuntu distro? According to the Ubuntu Ticket appears not :(