[PATCH] security: update lockdown_reasons[] reference
Xiu Jianfeng
xiujianfeng at huawei.com
Fri Nov 13 01:50:18 UTC 2026
On 11/13/2026 1:37 AM, Baruch Siach wrote:
> Commit 59438b46471ae6 ("security,lockdown,selinux: implement SELinux
> lockdown") moved lockdown_reasons[] from security/lockdown/lockdown.c to
> security/security.c. Update the documentation comment to match.
Hi Baruch,
Thanks for the patch.
However, Cai already has a patch under review that moves
lockdown_reasons[] back to security/lockdown/lockdown.c, and once it
gets merged, this issue will no longer exist.
You can check the discussion/patch here:
https://lore.kernel.org/all/20261110132818.2231593-6-caixinchen1@huawei.com/
>
> Fixes: 59438b46471ae6 ("security,lockdown,selinux: implement SELinux lockdown")
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
> include/linux/security.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/security.h b/include/linux/security.h
> index 40831fab5470..2782ee404f95 100644
> --- a/include/linux/security.h
> +++ b/include/linux/security.h
> @@ -124,7 +124,7 @@ enum lsm_integrity_type {
> * so.
> *
> * If you add to this, remember to extend lockdown_reasons in
> - * security/lockdown/lockdown.c.
> + * security/security.c.
> */
> enum lockdown_reason {
> LOCKDOWN_NONE,
More information about the Linux-security-module-archive
mailing list