Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinux: Streamline type determination in security_compute_sid
[ Upstream commit da2d41308c4206b966d77dcb77fb838d94244352 ] Simplifies the logic for determining the security context type in security_compute_sid, enhancing readability and efficiency. Consolidates default type assignment logic next to type transition checks, removing redundancy and improving code flow. Signed-off-by: Canfeng Guo <[email protected]> Signed-off-by: Paul Moore <[email protected]> [ Backport from v6.12-rc1 ] Signed-off-by: WangYuli <[email protected]>
- Loading branch information