From: Ron Yorston Fix an off-by-one error in the MLS compatibility code that was causing contexts with a MLS suffix to be rejected, preventing sharing partitions between FC4 and FC5. Bug reported in https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=188068 Signed-off-by: Stephen Smalley Acked-by: James Morris Signed-off-by: Andrew Morton --- security/selinux/ss/mls.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN security/selinux/ss/mls.c~selinux-fix-mls-compatibility-off-by-one-bug security/selinux/ss/mls.c --- 25/security/selinux/ss/mls.c~selinux-fix-mls-compatibility-off-by-one-bug Tue Apr 11 15:06:07 2006 +++ 25-akpm/security/selinux/ss/mls.c Tue Apr 11 15:06:07 2006 @@ -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; } _