Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux: fix non-MLS handling in mls_context_to_sid()
Commit 95ffe19 ("selinux: refactor mls_context_to_sid() and make it stricter") inadvertently changed how we handle labels that did not contain MLS information. This patch restores the proper behavior in mls_context_to_sid() and adds a comment explaining the proper behavior to help ensure this doesn't happen again. Fixes: 95ffe19 ("selinux: refactor mls_context_to_sid() and make it stricter") Reported-by: Stephen Smalley <[email protected]> Signed-off-by: Paul Moore <[email protected]>
- Loading branch information