]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b87d43cca0baebe2958363c805c7bb956be8387
tree3977c4bdd3271e3bc5210803d39eb4f11199ecf1
parent05ee218e3f05dfdd340a02d160af073d18c6d6fa
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