diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-20 11:11:05 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-20 11:11:05 -0400 |
commit | ae7b961b1c943367dfe179411f120d7bf8eaba89 (patch) | |
tree | d40171c26b22295e45ad7b67923442bfb513752a /fs/namei.c | |
parent | f7056d64ae101d910f965a2e39831f635ef7891b (diff) |
AUDIT: Report lookup flags with path/inode records.
When LOOKUP_PARENT is used, the inode which results is not the inode
found at the pathname. Report the flags so that this doesn't generate
misleading audit records.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
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 a7f7f44119b3..6e888dd10461 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1043,7 +1043,7 @@ int fastcall path_lookup(const char *name, unsigned int flags, struct nameidata | |||
1043 | out: | 1043 | out: |
1044 | if (unlikely(current->audit_context | 1044 | if (unlikely(current->audit_context |
1045 | && nd && nd->dentry && nd->dentry->d_inode)) | 1045 | && nd && nd->dentry && nd->dentry->d_inode)) |
1046 | audit_inode(name, nd->dentry->d_inode); | 1046 | audit_inode(name, nd->dentry->d_inode, flags); |
1047 | return retval; | 1047 | return retval; |
1048 | } | 1048 | } |
1049 | 1049 | ||