Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lsm kernel parameter gets ignored #181

Open
cloudlena opened this issue Feb 16, 2023 · 0 comments
Open

lsm kernel parameter gets ignored #181

cloudlena opened this issue Feb 16, 2023 · 0 comments

Comments

@cloudlena
Copy link

cloudlena commented Feb 16, 2023

I would like to enable AppArmor on my machine, and therefore I am following https://wiki.archlinux.org/title/AppArmor.

Since I'm using EFISTUB, I ran the following command to add the required lsm kernel parameter:

# efibootmgr --disk /dev/nvme0n1 --part 1 --create --label "Arch Linux" --loader /vmlinuz-linux --unicode 'cryptdevice=UUID=xxx:root root=/dev/mapper/root rw initrd=\intel-ucode.img initrd=\initramfs-linux.img lsm=landlock,lockdown,yama,integrity,apparmor,bpf'

where xxx is the UUID of the disk. I then changed the boot order to boot that newly created entry. This seems to work because, when I run efibootmgr --unicode after a restart, it shows the newly created entry under BootCurrent.

However, when I run cat /sys/kernel/security/lsm, it still shows capability,landlock,lockdown,yama,bpf so it seems to have ignored the newly added lsm kernel parameter.

Am I missing something here, or why isn't it using the new value including apparmor for lsm? Is it possible, that certain kernel parameters are not supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant