[PATCH -next -v2 5/8] lockdown: drop an unused include and move lockdown_reasons

Nicolas Bouchinet nicolas.bouchinet at oss.cyber.gouv.fr
Tue Nov 24 15:34:52 UTC 2026


On Tue, 10 Nov 2026 21:28:15 +0800, Cai Xinchen <caixinchen1 at huawei.com> wrote:
> linux/export.h is not needed since the file has no EXPORT_SYMBOL() usage.
> 
> lockdown_reasons[] is only used by the lockdown LSM after the audit data
> was removed from lsm_audit.  Move it into security/lockdown/lockdown.c,
> make it static, and drop the now stale extern declaration.  The existing
> enum comment in include/linux/security.h already pointed at
> security/lockdown/lockdown.c and becomes accurate now that the array has
> moved there.
> 
> [...]

Reviewed-by: Nicolas Bouchinet <nicolas.bouchinet at oss.cyber.gouv.fr>

-- 
Nicolas Bouchinet <nicolas.bouchinet at oss.cyber.gouv.fr>



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