summaryrefslogtreecommitdiffstats
path: root/security/selinux/include
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-07-06 15:23:34 +0200
committerPaul Moore <paul@paul-moore.com>2023-07-19 00:29:50 +0200
commitc867248cf451964a14c64b4ca232055f117df9c1 (patch)
treea388122f9deb7dc755d79a3e2e8e5ce1f19bc8d0 /security/selinux/include
parentselinux: fix implicit conversions in the symtab (diff)
downloadlinux-c867248cf451964a14c64b4ca232055f117df9c1.tar.xz
linux-c867248cf451964a14c64b4ca232055f117df9c1.zip
selinux: avoid implicit conversions regarding enforcing status
Use the type bool as parameter type in selinux_status_update_setenforce(). The related function enforcing_enabled() returns the type bool, while the struct selinux_kernel_status member enforcing uses an u32. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> [PM: subject line tweaks] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include')
-rw-r--r--security/selinux/include/security.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h
index 08840aa0782d..6b8b8fc3badd 100644
--- a/security/selinux/include/security.h
+++ b/security/selinux/include/security.h
@@ -375,7 +375,7 @@ struct selinux_kernel_status {
*/
} __packed;
-extern void selinux_status_update_setenforce(int enforcing);
+extern void selinux_status_update_setenforce(bool enforcing);
extern void selinux_status_update_policyload(u32 seqno);
extern void selinux_complete_init(void);
extern struct path selinux_null;