2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/security/selinux/ss
Stephen Smalley fde46f60f6 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: ae254858ce ("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>
2025-06-19 16:13:16 -04:00
..
avtab.c selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
avtab.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
conditional.c selinux: make more use of str_read() when loading the policy 2025-01-07 23:14:40 -05:00
conditional.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
constraint.h selinux: fix style issues in security/selinux/ss/constraint.h 2024-02-23 17:26:02 -05:00
context.c selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
context.h selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
ebitmap.c selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
ebitmap.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
hashtab.c selinux: replace kmem_cache_create() with KMEM_CACHE() 2024-08-27 18:42:27 -04:00
hashtab.h selinux: constify source policy in cond_policydb_dup() 2024-04-30 19:01:04 -04:00
mls_types.h selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
mls.c selinux: avoid unnecessary indirection in struct level_datum 2025-01-07 23:14:40 -05:00
mls.h selinux: fix style issues in security/selinux/ss/mls.h 2024-02-23 17:26:05 -05:00
policydb.c selinux: make more use of str_read() when loading the policy 2025-01-07 23:14:40 -05:00
policydb.h selinux: make more use of str_read() when loading the policy 2025-01-07 23:14:40 -05:00
services.c selinux: change security_compute_sid to return the ssid or tsid on match 2025-06-19 16:13:16 -04:00
services.h selinux: fix style issues in security/selinux/ss/services.h 2024-02-23 17:26:07 -05:00
sidtab.c selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
sidtab.h selinux: fix style issues in security/selinux/ss/sidtab.h 2024-02-23 17:26:07 -05:00
symtab.c selinux: improve symtab string hashing 2024-03-27 19:26:25 -04:00
symtab.h selinux: fix style issues in security/selinux/ss/symtab.h 2024-02-23 17:26:08 -05:00