|
@@ -803,7 +803,7 @@ static int do_fanotify_mark(int fanotify_fd, unsigned int flags, __u64 mask,
|
|
struct fsnotify_group *group;
|
|
struct fsnotify_group *group;
|
|
struct fd f;
|
|
struct fd f;
|
|
struct path path;
|
|
struct path path;
|
|
- u32 valid_mask = FANOTIFY_EVENTS | FAN_EVENT_ON_CHILD | FAN_ONDIR;
|
|
|
|
|
|
+ u32 valid_mask = FANOTIFY_EVENTS | FANOTIFY_EVENT_FLAGS;
|
|
unsigned int mark_type = flags & FANOTIFY_MARK_TYPE_BITS;
|
|
unsigned int mark_type = flags & FANOTIFY_MARK_TYPE_BITS;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -944,6 +944,9 @@ COMPAT_SYSCALL_DEFINE6(fanotify_mark,
|
|
*/
|
|
*/
|
|
static int __init fanotify_user_setup(void)
|
|
static int __init fanotify_user_setup(void)
|
|
{
|
|
{
|
|
|
|
+ BUILD_BUG_ON(HWEIGHT32(FANOTIFY_INIT_FLAGS) != 6);
|
|
|
|
+ BUILD_BUG_ON(HWEIGHT32(FANOTIFY_MARK_FLAGS) != 9);
|
|
|
|
+
|
|
fanotify_mark_cache = KMEM_CACHE(fsnotify_mark,
|
|
fanotify_mark_cache = KMEM_CACHE(fsnotify_mark,
|
|
SLAB_PANIC|SLAB_ACCOUNT);
|
|
SLAB_PANIC|SLAB_ACCOUNT);
|
|
fanotify_event_cachep = KMEM_CACHE(fanotify_event_info, SLAB_PANIC);
|
|
fanotify_event_cachep = KMEM_CACHE(fanotify_event_info, SLAB_PANIC);
|