Commit fde46f60 authored by Stephen Smalley's avatar Stephen Smalley Committed by Paul Moore
Browse files

selinux: change security_compute_sid to return the ssid or tsid on match



If the end result of a security_compute_sid() computation matches the
ssid or tsid, return that SID rather than looking it up again. This
avoids the problem of multiple initial SIDs that map to the same
context.

Cc: stable@vger.kernel.org
Reported-by: default avatarGuido Trentalancia <guido@trentalancia.com>
Fixes: ae254858 ("selinux: introduce an initial SID for early boot processes")
Signed-off-by: default avatarStephen Smalley <stephen.smalley.work@gmail.com>
Tested-by: default avatarGuido Trentalancia <guido@trentalancia.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 86c8db86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment