Re: [PATCH -next -v2 5/8] lockdown: drop an unused include and move lockdown_reasons
From: Nicolas Bouchinet
Date: Tue Nov 24 2026 - 10:35:54 EST
On Tue, 10 Nov 2026 21:28:15 +0800, Cai Xinchen <caixinchen1@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxx>
--
Nicolas Bouchinet <nicolas.bouchinet@xxxxxxxxxxxxxxxxx>