[PATCH] security: CONFIG_LSM: LSM can depend on SECURITY
Paul Moore
paul at paul-moore.com
Thu Sep 11 20:32:03 UTC 2025
On Aug 24, 2025 Randy Dunlap <rdunlap at infradead.org> wrote:
>
> When CONFIG_SECURITY is not set, CONFIG_LSM (builtin_lsm_order) does
> not need to be visible and settable since builtin_lsm_order is defined in
> security.o, which is only built when CONFIG_SECURITY=y.
>
> So make CONFIG_LSM depend on CONFIG_SECURITY.
>
> Fixes: 13e735c0e953 ("LSM: Introduce CONFIG_LSM")
> Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> ---
> Cc: Kees Cook <kees at kernel.org>
> Cc: Paul Moore <paul at paul-moore.com>
> Cc: James Morris <jmorris at namei.org>
> Cc: "Serge E. Hallyn" <serge at hallyn.com>
> Cc: linux-security-module at vger.kernel.org
>
> security/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Merged into lsm/dev, thanks!
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list