summaryrefslogtreecommitdiffstats
path: root/fs/bad_inode.c
diff options
context:
space:
mode:
authorEric Paris2009-09-21 03:23:01 +0200
committerJames Morris2009-09-30 11:17:06 +0200
commitaf8ff04917169805b151280155bf772d3ca9bec0 (patch)
tree1a1ec17d0926b4bbe9f8b243231582dde02ef1f5 /fs/bad_inode.c
parentMerge branch 'master' into next (diff)
downloadkernel-qcow2-linux-af8ff04917169805b151280155bf772d3ca9bec0.tar.gz
kernel-qcow2-linux-af8ff04917169805b151280155bf772d3ca9bec0.tar.xz
kernel-qcow2-linux-af8ff04917169805b151280155bf772d3ca9bec0.zip
SELinux: reset the security_ops before flushing the avc cache
This patch resets the security_ops to the secondary_ops before it flushes the avc. It's still possible that a task on another processor could have already passed the security_ops dereference and be executing an selinux hook function which would add a new avc entry. That entry would still not be freed. This should however help to reduce the number of needless avcs the kernel has when selinux is disabled at run time. There is no wasted memory if selinux is disabled on the command line or not compiled. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions