]> git.baikalelectronics.ru Git - kernel.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>
Fri, 12 Oct 2012 04:32:02 +0000 (00:32 -0400)
commitaa3dbf5316ebd3a55d99f180776c2e103cee5365
treed40cea06665f9092820d76948d38e329c178011b
parent14e516d6cc20357dd964f8fffef9109dddcd381c
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