diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-21 17:30:13 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-01 12:11:59 -0400 |
commit | d7fdd7f6e1afbffda03aeacb90039c092e8cacf8 (patch) | |
tree | 3ce93ad170a92ee15b7d0d1364baa18c26aed042 | |
parent | 050ac841ea90610067fec26150574be8c6077738 (diff) | |
download | linux-d7fdd7f6e1afbffda03aeacb90039c092e8cacf8.tar.gz linux-d7fdd7f6e1afbffda03aeacb90039c092e8cacf8.tar.bz2 linux-d7fdd7f6e1afbffda03aeacb90039c092e8cacf8.zip |
vfs: do_last(): add audit_inode before open
This allows this code to be shared between O_CREAT and plain opens.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/namei.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c index 90210b46b461..125386c250bb 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -2389,6 +2389,7 @@ static struct file *do_last(struct nameidata *nd, struct path *path, error = -ENOTDIR; if ((nd->flags & LOOKUP_DIRECTORY) && !nd->inode->i_op->lookup) goto exit; + audit_inode(pathname, nd->path.dentry); ok: if (!S_ISREG(nd->inode->i_mode)) will_truncate = 0; |