[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 <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
Amy Griffis 2005-11-03 15:57:06 +00:00 • committed by Al Viro
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;
}