diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-01-05 23:12:33 +0100 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:52:00 +0300 |
commit | cf0d42043fc66dd5f3e8b9556a692c70455f91ac (patch) | |
tree | 225e86653b6dd996f8ca792359c0741757006459 /security/selinux/include/objsec.h | |
parent | 99496f4811f5f2bb574dd078cd02ec025bd1ddba (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