projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78570d
)
audit: pass in dentry to audit_copy_inode wherever possible
author
Jeff Layton
<jlayton@redhat.com>
Wed, 10 Oct 2012 19:25:20 +0000
(15:25 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 12 Oct 2012 04:31:59 +0000
(
00:31
-0400)
In some cases, we were passing in NULL even when we have a dentry.
Reported-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index f4a7756f999cddcf344e685ea561f358812c41fd..4d1bd62b090b03dadc0b0745a493e9c7b70da822 100644
(file)
--- a/
kernel/auditsc.c
+++ b/
kernel/auditsc.c
@@
-2212,7
+2212,7
@@
void __audit_inode_child(const struct dentry *dentry,
if (!strcmp(dname, n->name) ||
!audit_compare_dname_path(dname, n->name, &dirlen)) {
if (inode)
- audit_copy_inode(n,
NULL
, inode);
+ audit_copy_inode(n,
dentry
, inode);
else
n->ino = (unsigned long)-1;
found_child = n->name;
@@
-2244,7
+2244,7
@@
add_names:
}
if (inode)
- audit_copy_inode(n,
NULL
, inode);
+ audit_copy_inode(n,
dentry
, inode);
}
}
EXPORT_SYMBOL_GPL(__audit_inode_child);