diff --git a/lib/selinux.c b/lib/selinux.c index e31a5f92d..a2ea91c8a 100644 --- a/lib/selinux.c +++ b/lib/selinux.c @@ -94,7 +94,7 @@ int reset_selinux_file_context (void) } if (selinux_enabled) { if (setfscreatecon_raw (NULL) != 0) { - return 1; + return security_getenforce () != 0; } } return 0;