audit: fix filename matching in __audit_inode() and __audit_inode_child()
authorPaul Moore <pmoore@redhat.com>
Thu, 22 Jan 2015 05:00:16 +0000 (00:00 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 23 Jan 2015 05:23:58 +0000 (00:23 -0500)
commit57c59f5837bdfd0b4fee3b02a44857e263a09bfa
tree3977c4bdd3271e3bc5210803d39eb4f11199ecf1
parentfd3522fdc84023b050bb40318d9fc71a9adc22bc
audit: fix filename matching in __audit_inode() and __audit_inode_child()

In all likelihood there were some subtle, and perhaps not so subtle,
bugs with filename matching in audit_inode() and audit_inode_child()
for some time, however, recent changes to the audit filename code have
definitely broken the filename matching code.  The breakage could
result in duplicate filenames in the audit log and other odd audit
record entries.  This patch fixes the filename matching code and
restores some sanity to the filename audit records.

CC: viro@zeniv.linux.org.uk
CC: linux-fsdevel@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c