Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207632
b: refs/heads/master
c: 220d14d
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris committed Jul 28, 2010
1 parent efc58a6 commit e6095b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffab83402f01555a5fa32efb48a4dd0ce8d12ef5
refs/heads/master: 220d14df0dc587c06b97762829a41157c9375b94
11 changes: 9 additions & 2 deletions trunk/kernel/audit_watch.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ static struct audit_parent *audit_init_parent(struct nameidata *ndp)
return ERR_PTR(ret);
}

fsnotify_recalc_group_mask(audit_watch_group);

return parent;
}

Expand Down Expand Up @@ -353,6 +355,9 @@ static void audit_remove_parent_watches(struct audit_parent *parent)
mutex_unlock(&audit_filter_mutex);

fsnotify_destroy_mark_by_entry(&parent->mark);

fsnotify_recalc_group_mask(audit_watch_group);

}

/* Get path information necessary for adding watches. */
Expand Down Expand Up @@ -503,6 +508,9 @@ void audit_remove_watch_rule(struct audit_krule *krule)
audit_put_parent(parent);
}
}

fsnotify_recalc_group_mask(audit_watch_group);

}

static bool audit_watch_should_send_event(struct fsnotify_group *group, struct inode *inode,
Expand Down Expand Up @@ -577,8 +585,7 @@ static const struct fsnotify_ops audit_watch_fsnotify_ops = {

static int __init audit_watch_init(void)
{
audit_watch_group = fsnotify_alloc_group(AUDIT_FS_WATCH,
&audit_watch_fsnotify_ops);
audit_watch_group = fsnotify_alloc_group(0, &audit_watch_fsnotify_ops);
if (IS_ERR(audit_watch_group)) {
audit_watch_group = NULL;
audit_panic("cannot create audit fsnotify group");
Expand Down

0 comments on commit e6095b6

Please sign in to comment.