selinux: avoid implicit conversions regarding enforcing status
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 6 Jul 2023 13:23:34 +0000 (15:23 +0200)
committerPaul Moore <paul@paul-moore.com>
Tue, 18 Jul 2023 22:29:50 +0000 (18:29 -0400)
commitc867248cf451964a14c64b4ca232055f117df9c1
treea388122f9deb7dc755d79a3e2e8e5ce1f19bc8d0
parent0e83c9c6fb0d7d2fddd2cd02575d7ad157e12837
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>
security/selinux/include/security.h
security/selinux/selinuxfs.c
security/selinux/status.c