[PATCH v4 3/8] lockdown: select SECURITYFS
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Mon Nov 30 08:01:26 UTC 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] lockdown: missing Fixes trailer for missing SECURITYFS Kconfig
selection
--
commit 70ec9e14c2ab0c4dcd54d797747fb08ffed9d75d
Author: Cai Xinchen <caixinchen1 at huawei.com>
> lockdown: select SECURITYFS
>
> 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 interface that the LOCK_DOWN_KERNEL_FORCE_NONE help text
> presents as a way to enable lockdown is missing.
>
> Select SECURITYFS like the other LSMs that create securityfs entries
> (AppArmor, SafeSetID, TOMOYO and IMA) already do.
>
> Tested-by: Guicai Ma <maguicai at kylinos.cn>
> Reviewed-by: Nicolas Bouchinet <nicolas.bouchinet at oss.cyber.gouv.fr>
> Signed-off-by: Cai Xinchen <caixinchen1 at huawei.com>
[Severity: Low]
Since SECURITY_LOCKDOWN_LSM has used securityfs_create_file() since it was
introduced without selecting SECURITYFS, should this include a Fixes tag?
Fixes: 000d388ed3bb ("security: Add a static lockdown policy LSM")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261130082914.129495-2-caixinchen1@huawei.com?part=3
More information about the Linux-security-module-archive
mailing list