Adding landlock to CONFIG_LSM in 5.13 kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since Landlock[1] is enabled in ubuntu 5.13 kernels[2], I wonder if it should be added to CONFIG_LSM[3] so that the feature is usable without having to override the lsm parameter on the kernel command line (and reboot).
Upstream seems to have it enabled since it was merged before 5.13-rc1.[4]
I tried to use landlock this morning on ubuntu 20.04 with kernel linux-image-
I had to dig around a bit to see that it needs to be added to CONFIG_LSM before it can actually be used.
To make it work, I added the following to GRUB_CMDLINE_
lsm=landlock,
Then grub-update + reboot.
It'd be great if it was available without having to jump through hoops (and a reboot), but otherwise maybe the above info will help others trying to figure out why landlock isn't working even-though the feature is configured in the kernel.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1950381
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.