diff options
author | Eric Paris <eparis@redhat.com> | 2009-02-12 20:50:49 +0100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-02-13 23:23:04 +0100 |
commit | 21193dcd1f3570ddfd8a04f4465e484c1f94252f (patch) | |
tree | b6cab3861103261a3ab27ff3ea3485cb53af5a92 /security/selinux/include/security.h | |
parent | SELinux: remove the unused ae.used (diff) | |
download | linux-21193dcd1f3570ddfd8a04f4465e484c1f94252f.tar.xz linux-21193dcd1f3570ddfd8a04f4465e484c1f94252f.zip |
SELinux: more careful use of avd in avc_has_perm_noaudit
we are often needlessly jumping through hoops when it comes to avd
entries in avc_has_perm_noaudit and we have extra initialization and memcpy
which are just wasting performance. Try to clean the function up a bit.
This patch resulted in a 13% drop in time spent in avc_has_perm_noaudit in my
oprofile sampling of a tbench benchmark.
Signed-off-by: Eric Paris <eparis@redhat.com>
Reviewed-by: Paul Moore <paul.moore@hp.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include/security.h')
0 files changed, 0 insertions, 0 deletions