Commit fde46f6
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: ae25485 ("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]>1 parent 86c8db8 commit fde46f6
1 file changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
1912 | | - | |
1913 | | - | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
1917 | 1923 | | |
1918 | 1924 | | |
1919 | 1925 | | |
| |||
0 commit comments