[PATCH] Fix variable type to be 'bool' instead of incorrect 'int'.

Kalevi Kolttonen via selinux <[email protected]> Tue, 13 May 2025 00:21:00 +0300
Newsgroups gmane.linux.redhat.fedora.selinux
Message-ID <aCJmPHxPJnv0VpoV@14-5A-FC-31-E8-67>
--svc9MIrBP6sNat/f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

The patch is attached.

--svc9MIrBP6sNat/f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=int-to-bool.patch

>From 58f88fd5912bfd0f9311c73ccf208d2765b74aef Mon Sep 17 00:00:00 2001
From: Kalevi Kolttonen <[email protected]>
Date: Tue, 13 May 2025 00:16:03 +0300
Subject: [PATCH] Fix variable type to be 'bool' instead of incorrect 'int'.

---
 security/security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/security/security.c b/security/security.c
index fb57e8fddd91..02336de43ba9 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


--svc9MIrBP6sNat/f
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCnNlbGlu
dXggbWFpbGluZyBsaXN0IC0tIHNlbGludXhAbGlzdHMuZmVkb3JhcHJvamVjdC5vcmcKVG8gdW5z
dWJzY3JpYmUgc2VuZCBhbiBlbWFpbCB0byBzZWxpbnV4LWxlYXZlQGxpc3RzLmZlZG9yYXByb2pl
Y3Qub3JnCkZlZG9yYSBDb2RlIG9mIENvbmR1Y3Q6IGh0dHBzOi8vZG9jcy5mZWRvcmFwcm9qZWN0
Lm9yZy9lbi1VUy9wcm9qZWN0L2NvZGUtb2YtY29uZHVjdC8KTGlzdCBHdWlkZWxpbmVzOiBodHRw
czovL2ZlZG9yYXByb2plY3Qub3JnL3dpa2kvTWFpbGluZ19saXN0X2d1aWRlbGluZXMKTGlzdCBB
cmNoaXZlczogaHR0cHM6Ly9saXN0cy5mZWRvcmFwcm9qZWN0Lm9yZy9hcmNoaXZlcy9saXN0L3Nl
bGludXhAbGlzdHMuZmVkb3JhcHJvamVjdC5vcmcKRG8gbm90IHJlcGx5IHRvIHNwYW0sIHJlcG9y
dCBpdDogaHR0cHM6Ly9wYWd1cmUuaW8vZmVkb3JhLWluZnJhc3RydWN0dXJlL25ld19pc3N1ZQo=

--svc9MIrBP6sNat/f--