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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch is attached.
>From 58f88fd5912bfd0f9311c73ccf208d2765b74aef Mon Sep 17 00:00:00 2001
From: Kalevi Kolttonen <kalevi@xxxxxxxxxxxx>
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

-- 
_______________________________________________
selinux mailing list -- selinux@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to selinux-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/selinux@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux