From: Eric Paris Date: Thu, 12 Feb 2009 19:50:49 +0000 (-0500) Subject: SELinux: more careful use of avd in avc_has_perm_noaudit X-Git-Tag: v2.6.30-rc1~679^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21193dcd1f3570ddfd8a04f4465e484c1f94252f;p=pandora-kernel.git 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 Reviewed-by: Paul Moore Acked-by: Stephen Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed