diff options
-rw-r--r-- | security/selinux/ss/services.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 27ee28ccf266..7eb69a602d8f 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) | |||
1841 | u32 len; | 1841 | u32 len; |
1842 | int rc = 0; | 1842 | int rc = 0; |
1843 | 1843 | ||
1844 | if (!ss_initialized) { | 1844 | if (!ss_initialized || !selinux_mls_enabled) { |
1845 | *new_sid = sid; | 1845 | *new_sid = sid; |
1846 | goto out; | 1846 | goto out; |
1847 | } | 1847 | } |