[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:
Amy Griffis
2005-11-03 15:57:06 +00:00
committed by Al Viro
parent 90d526c074
commit f38aa94224
3 changed files with 11 additions and 10 deletions

View File

@@ -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;
}