I also noticed this issue with the latest Ubuntu 22.04 amd64 release image (ami-09d56f8956ab235b3). It does not have "bpf" in CONFIG_LSM.
root@xxxx:/home/ubuntu# uname -a
Linux xxxx 5.15.0-1004-aws #6-Ubuntu SMP Thu Mar 31 09:44:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@xxxx:/home/ubuntu#
I also noticed this issue with the latest Ubuntu 22.04 amd64 release image (ami-09d56f8956 ab235b3) . It does not have "bpf" in CONFIG_LSM.
root@xxxx: /home/ubuntu# uname -a /home/ubuntu#
Linux xxxx 5.15.0-1004-aws #6-Ubuntu SMP Thu Mar 31 09:44:20 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
root@xxxx:
root@xxxx: /home/ubuntu# grep LSM /boot/config- $(uname -r) IIO_ST_ LSM6DSX= m IIO_ST_ LSM6DSX_ I2C=m IIO_ST_ LSM6DSX_ SPI=m IIO_ST_ LSM6DSX_ I3C=m IIO_ST_ LSM9DS0= m IIO_ST_ LSM9DS0_ I2C=m IIO_ST_ LSM9DS0_ SPI=m LSM_MMAP_ MIN_ADDR= 0 SECURITY_ LOCKDOWN_ LSM=y SECURITY_ LOCKDOWN_ LSM_EARLY= y IMA_LSM_ RULES=y LSM="landlock, lockdown, yama,integrity, apparmor" /home/ubuntu#
CONFIG_BPF_LSM=y
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
CONFIG_
root@xxxx:
Update: I thought this was an immutable kernel config option, but I found the corresponding kernel boot flag.
./Documentation /admin- guide/kernel- parameters. txt