diff options
author | 2025-06-10 15:48:27 -0400 | |
---|---|---|
committer | 2025-06-19 16:13:16 -0400 | |
commit | fde46f60f6c5138ee422087addbc5bf5b4968bf1 (patch) | |
tree | ca3e5acb47fecdb305f92160e18a4857a5814645 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selinux: fix selinux_xfrm_alloc_user() to set correct ctx_len (diff) | |
download | wireguard-linux-fde46f60f6c5138ee422087addbc5bf5b4968bf1.tar.xz wireguard-linux-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: stable@vger.kernel.org
Reported-by: Guido Trentalancia <guido@trentalancia.com>
Fixes: ae254858ce07 ("selinux: introduce an initial SID for early boot processes")
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Tested-by: Guido Trentalancia <guido@trentalancia.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions