aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2018-12-12 10:10:55 -0500
committerPaul Moore <paul@paul-moore.com>2019-01-10 20:32:53 -0500
commit3a28cff3bd4bf43f02be0c4e7933aebf3dc8197e (patch)
tree64f75c4103e27e02a5edf203bf5f8a1a420ab1e8 /samples
parentLinux 5.0-rc1 (diff)
downloadlinux-dev-3a28cff3bd4bf43f02be0c4e7933aebf3dc8197e.tar.xz
linux-dev-3a28cff3bd4bf43f02be0c4e7933aebf3dc8197e.zip
selinux: avoid silent denials in permissive mode under RCU walk
commit 0dc1ba24f7fff6 ("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: 0dc1ba24f7fff6 ("SELINUX: Make selinux cache VFS RCU walks safe") Reported-by: BMK <bmktuwien@gmail.com> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions