diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-18 02:12:05 +0100 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 15:58:17 +0200 |
commit | 40554c3dae83bd892b7fbfaa2ea9de739cbcf065 (patch) | |
tree | 7b9d4951734af9d819a900ff08f23c797a5c1b5c /kernel/audit_watch.c | |
parent | fsnotify: duplicate fsnotify_mark_entry data between 2 marks (diff) | |
download | linux-40554c3dae83bd892b7fbfaa2ea9de739cbcf065.tar.xz linux-40554c3dae83bd892b7fbfaa2ea9de739cbcf065.zip |
fsnotify: allow addition of duplicate fsnotify marks
This patch allows a task to add a second fsnotify mark to an inode for the
same group. This mark will be added to the end of the inode's list and
this will never be found by the stand fsnotify_find_mark() function. This
is useful if a user wants to add a new mark before removing the old one.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit_watch.c')
-rw-r--r-- | kernel/audit_watch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 75ab53987ece..c44de0c4fc47 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c @@ -161,7 +161,7 @@ static struct audit_parent *audit_init_parent(struct nameidata *ndp) fsnotify_init_mark(&parent->mark, audit_watch_free_mark); parent->mark.mask = AUDIT_FS_WATCH; - ret = fsnotify_add_mark(&parent->mark, audit_watch_group, inode); + ret = fsnotify_add_mark(&parent->mark, audit_watch_group, inode, 0); if (ret < 0) { audit_free_parent(parent); return ERR_PTR(ret); |