[PATCH -next 4/9] lockdown: select SECURITYFS

sashiko-bot at kernel.org sashiko-bot at kernel.org
Tue Nov 3 07:54:47 UTC 2026


> The lockdown LSM exposes /sys/kernel/security/lockdown, but it does not
> select SECURITYFS.  If SECURITYFS is disabled, securityfs_create_file()
> returns -ENODEV, lockdown_secfs_init() fails and the LSM framework logs:
> 
>   failed LSM lockdown core initcall with errno -19
> 
> while the sysfs interface advertised by the Kconfig help text is missing.
> 
> Select SECURITYFS like the other LSMs that create securityfs entries
> (AppArmor, SafeSetID, TOMOYO and IMA) already do.
> 
> Signed-off-by: Cai Xinchen <caixinchen1 at huawei.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261103082421.3033195-1-caixinchen1@huawei.com?part=4




More information about the Linux-security-module-archive mailing list