aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorStephen Smalley <[email protected]>2025-06-10 19:48:27 +0000
committerPaul Moore <[email protected]>2025-06-19 20:13:16 +0000
commitfde46f60f6c5138ee422087addbc5bf5b4968bf1 (patch)
treeca3e5acb47fecdb305f92160e18a4857a5814645 /lib/memory-notifier-error-inject.c
parentselinux: fix selinux_xfrm_alloc_user() to set correct ctx_len (diff)
downloadkernel-fde46f60f6c5138ee422087addbc5bf5b4968bf1.tar.gz
kernel-fde46f60f6c5138ee422087addbc5bf5b4968bf1.zip
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: [email protected] Reported-by: Guido Trentalancia <[email protected]> Fixes: ae254858ce07 ("selinux: introduce an initial SID for early boot processes") Signed-off-by: Stephen Smalley <[email protected]> Tested-by: Guido Trentalancia <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions