diff options
author | Amy Griffis <amy.griffis@hp.com> | 2006-07-13 13:16:39 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-08-03 10:50:30 -0400 |
commit | 73d3ec5abad3f1730ac8530899d2c14d92f3ad63 (patch) | |
tree | c2829a1e36ca155eecc7d4b8648fe9755247bec5 /fs/namei.c | |
parent | 3e2efce067cec0099f99ae59f28feda99b02b498 (diff) | |
download | linux-3.10-73d3ec5abad3f1730ac8530899d2c14d92f3ad63.tar.gz linux-3.10-73d3ec5abad3f1730ac8530899d2c14d92f3ad63.tar.bz2 linux-3.10-73d3ec5abad3f1730ac8530899d2c14d92f3ad63.zip |
[PATCH] fix missed create event for directory audit
When an object is created via a symlink into an audited directory, audit misses
the event due to not having collected the inode data for the directory. Modify
__audit_inode_child() to copy the parent inode data if a parent wasn't found in
audit_names[].
Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 47a7bad92d2..0ab26cbdacc 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1357,7 +1357,7 @@ static int may_delete(struct inode *dir,struct dentry *victim,int isdir) return -ENOENT; BUG_ON(victim->d_parent->d_inode != dir); - audit_inode_child(victim->d_name.name, victim->d_inode, dir->i_ino); + audit_inode_child(victim->d_name.name, victim->d_inode, dir); error = permission(dir,MAY_WRITE | MAY_EXEC, NULL); if (error) |