Re: [PATCH RFC 19/20] selinux: status: avoid implicit conversions regarding enforcing status

From: Paul Moore
Date: Tue Jul 18 2023 - 18:02:41 EST


On Jul 6, 2023 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@xxxxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxxx>
> ---
> security/selinux/include/security.h | 2 +-
> security/selinux/selinuxfs.c | 7 ++++---
> security/selinux/status.c | 4 ++--
> 3 files changed, 7 insertions(+), 6 deletions(-)

Merged into selinux/next, thanks.

--
paul-moore.com