diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 27ee28ccf2669ac28e17abf4975b4665f10c9e78..7eb69a602d8fbe83b7b7bf2f59a38a8a85f4bc81 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -1841,7 +1841,7 @@ int security_sid_mls_copy(u32 sid, u32 mls_sid, u32 *new_sid) u32 len; int rc = 0; - if (!ss_initialized) { + if (!ss_initialized || !selinux_mls_enabled) { *new_sid = sid; goto out; }