Commit 3a28cff
selinux: avoid silent denials in permissive mode under RCU walk
commit 0dc1ba2 ("SELINUX: Make selinux cache VFS RCU walks safe")
results in no audit messages at all if in permissive mode because the
cache is updated during the rcu walk and thus no denial occurs on
the subsequent ref walk. Fix this by not updating the cache when
performing a non-blocking permission check. This only affects search
and symlink read checks during rcu walk.
Fixes: 0dc1ba2 ("SELINUX: Make selinux cache VFS RCU walks safe")
Reported-by: BMK <[email protected]>
Signed-off-by: Stephen Smalley <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent bfeffd1 commit 3a28cff
3 files changed
Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
| 841 | + | |
841 | 842 | | |
842 | 843 | | |
843 | 844 | | |
| |||
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
859 | 877 | | |
860 | 878 | | |
861 | 879 | | |
| |||
1115 | 1133 | | |
1116 | 1134 | | |
1117 | 1135 | | |
1118 | | - | |
| 1136 | + | |
1119 | 1137 | | |
1120 | 1138 | | |
1121 | 1139 | | |
| |||
1199 | 1217 | | |
1200 | 1218 | | |
1201 | 1219 | | |
1202 | | - | |
| 1220 | + | |
| 1221 | + | |
1203 | 1222 | | |
1204 | 1223 | | |
1205 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2982 | 2982 | | |
2983 | 2983 | | |
2984 | 2984 | | |
2985 | | - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
2986 | 2988 | | |
2987 | 2989 | | |
2988 | 2990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
0 commit comments