[PATCH -next -v2 5/8] lockdown: drop an unused include and move lockdown_reasons
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 10 13:11:16 UTC 2026
> 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.
>
> No functional change.
>
> Signed-off-by: Cai Xinchen <caixinchen1 at huawei.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261110132818.2231593-1-caixinchen1@huawei.com?part=5
More information about the Linux-security-module-archive
mailing list