mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
commit3a28cff3bdupstream. commit0dc1ba24f7("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:0dc1ba24f7("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> [bwh: Backported to 3.16: - Add flags parameter to avc_update_node(), done upstream in commitfa1aa143ac"selinux: extended permissions for ioctls" - Adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
6149 lines
151 KiB
6149 lines
151 KiB