]> git.karo-electronics.de Git - karo-tx-linux.git/commit
audit: overhaul __audit_inode_child to accomodate retrying
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)
commit8a56b011edd4c5d68068612329040570c26584e8
tree8af7d27b00739d45c44c31c09af83648eba8183a
parentfcf2ba4981a5efa9f23d07551baf3e01c215794a
audit: overhaul __audit_inode_child to accomodate retrying

In order to accomodate retrying path-based syscalls, we need to add a
new "type" argument to audit_inode_child. This will tell us whether
we're looking for a child entry that represents a create or a delete.

If we find a parent, don't automatically assume that we need to create a
new entry. Instead, use the information we have to try to find an
existing entry first. Update it if one is found and create a new one if
not.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/btrfs/ioctl.c
fs/namei.c
include/linux/audit.h
include/linux/fsnotify.h
kernel/auditsc.c