diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:34 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:59:00 -0400 |
commit | 4d92604cc90aa18bbbe0f6e23b7a9fdb612836d3 (patch) | |
tree | c04b26fb38a8524fa5e204cb9e40870afa9823f9 /fs/notify/inode_mark.c | |
parent | c9778a98e7440fb73e0d27b8155a688663a0d493 (diff) | |
download | kernel_samsung_smdk4412-4d92604cc90aa18bbbe0f6e23b7a9fdb612836d3.zip kernel_samsung_smdk4412-4d92604cc90aa18bbbe0f6e23b7a9fdb612836d3.tar.gz kernel_samsung_smdk4412-4d92604cc90aa18bbbe0f6e23b7a9fdb612836d3.tar.bz2 |
fanotify: clear all fanotify marks
fanotify listeners may want to clear all marks. They may want to do this
to destroy all of their inode marks which have nothing but ignores.
Realistically this is useful for av vendors who update policy and want to
clear all of their cached allows.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inode_mark.c')
-rw-r--r-- | fs/notify/inode_mark.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 4292f9e..0c0a48b 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c @@ -104,6 +104,14 @@ void fsnotify_clear_marks_by_inode(struct inode *inode) } /* + * Given a group clear all of the inode marks associated with that group. + */ +void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group) +{ + fsnotify_clear_marks_by_group_flags(group, FSNOTIFY_MARK_FLAG_INODE); +} + +/* * given a group and inode, find the mark associated with that combination. * if found take a reference to that mark and return it, else return NULL */ |