]> git.karo-electronics.de Git - karo-tx-linux.git/commit
audit: optimize audit_compare_dname_path
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:25 +0000 (15:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 11 Oct 2012 15:43:39 +0000 (11:43 -0400)
commitfcf2ba4981a5efa9f23d07551baf3e01c215794a
tree495302494bda033099987fb9c55fd7504826746d
parenta5b13bc3ff7912531ecd64e4fd8a863448e991b0
audit: optimize audit_compare_dname_path

In the cases where we already know the length of the parent, pass it as
a parm so we don't need to recompute it. In the cases where we don't
know the length, pass in AUDIT_NAME_FULL (-1) to indicate that it should
be determined.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/audit.h
kernel/audit_watch.c
kernel/auditfilter.c
kernel/auditsc.c