• Paul Moore's avatar
    audit: fix filename matching in __audit_inode() and __audit_inode_child() · 57c59f58
    Paul Moore authored
    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: default avatarPaul Moore <pmoore@redhat.com>
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    57c59f58
auditsc.c 66.5 KB