Commit da2d4130 authored by Canfeng Guo's avatar Canfeng Guo Committed by Paul Moore
Browse files

selinux: Streamline type determination in security_compute_sid



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: default avatarCanfeng Guo <guocanfeng@uniontech.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 8400291e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment