mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-31 11:34:32 +00:00
[PATCH] selinux: Fix MLS compatibility off-by-one bug
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 <sds@tycho.nsa.gov> Acked-by: James Morris <jmorris@redhat.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
dda27d1a55
commit
ab5703b342
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ int mls_context_to_sid(char oldc,
|
||||||
|
|
||||||
if (!selinux_mls_enabled) {
|
if (!selinux_mls_enabled) {
|
||||||
if (def_sid != SECSID_NULL && oldc)
|
if (def_sid != SECSID_NULL && oldc)
|
||||||
*scontext += strlen(*scontext);
|
*scontext += strlen(*scontext)+1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue