[PATCH] Pass dentry, not just name, in fsnotify creation hooks.
The audit hooks (to be added shortly) will want to see dentry->d_inode too, not just the name. Signed-off-by: Amy Griffis <amy.griffis@hp.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
@@ -515,7 +515,7 @@ static int audit_filter_rules(struct task_struct *tsk,
|
||||
case AUDIT_INODE:
|
||||
if (ctx) {
|
||||
for (j = 0; j < ctx->name_count; j++) {
|
||||
if (audit_comparator(ctx->names[j].ino, op, value)) {
|
||||
if ( audit_comparator(ctx->names[j].ino, op, value)) {
|
||||
++result;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user