[PATCH] security: update lockdown_reasons[] reference

Cai Xinchen caixinchen1 at huawei.com
Fri Nov 13 01:42:55 UTC 2026


Hello, Barush

lockdown_reasons[] is only used by the lockdown LSM after the audit data 
was removed from lsm_audit. I have sent a patch [1] to move 
lockdown_reasons back to security/lockdown/lockdown.c. Of course, the 
final decision will be made by the maintainers, whether to move it back 
to lockdown.c or keep it in security.h with only the comments modified.

[1] 
https://lore.kernel.org/all/20261110132818.2231593-6-caixinchen1@huawei.com/

Best regards.

Cai

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.
>
> 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