summaryrefslogtreecommitdiff
path: root/security/selinux/include/objsec.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2016-01-05 23:12:33 +0100
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:52:00 +0300
commitcf0d42043fc66dd5f3e8b9556a692c70455f91ac (patch)
tree225e86653b6dd996f8ca792359c0741757006459 /security/selinux/include/objsec.h
parent99496f4811f5f2bb574dd078cd02ec025bd1ddba (diff)
selinux: Inode label revalidation performance fix
Commit 5d226df4 has introduced a performance regression of about 10% in the UnixBench pipe benchmark. It turns out that the call to inode_security in selinux_file_permission can be moved below the zero-mask test and that inode_security_revalidate can be removed entirely, which brings us back to roughly the original performance. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/objsec.h')
0 files changed, 0 insertions, 0 deletions