[PATCH] selinux: Fix MLS compatibility off-by-one bug
[linux-3.10.git] / security / selinux / ss / mls.c
index 640d0bf..84047f6 100644 (file)
@@ -264,7 +264,7 @@ int mls_context_to_sid(char oldc,
 
        if (!selinux_mls_enabled) {
                if (def_sid != SECSID_NULL && oldc)
-                       *scontext += strlen(*scontext);
+                       *scontext += strlen(*scontext)+1;
                return 0;
        }