[PATCH] Fix variable type to be 'bool' instead of incorrect 'int'
Kalevi Kolttonen
kalevi at kolttonen.fi
Thu May 15 20:19:52 UTC 2025
Signed-off-by: Kalevi Kolttonen <kalevi at kolttonen.fi>
---
security/security.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/security.c b/security/security.c
index 596d41818577..447adeeb15d0 100644
--- a/security/security.c
+++ b/security/security.c
@@ -288,7 +288,7 @@ static void __init lsm_set_blob_sizes(struct lsm_blob_sizes *needed)
/* Prepare LSM for initialization. */
static void __init prepare_lsm(struct lsm_info *lsm)
{
- int enabled = lsm_allowed(lsm);
+ bool enabled = lsm_allowed(lsm);
/* Record enablement (to handle any following exclusive LSMs). */
set_enabled(lsm, enabled);
--
2.49.0
More information about the Linux-security-module-archive
mailing list