Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b723a791 authored by Amir Goldstein's avatar Amir Goldstein Committed by Jan Kara
Browse files

fanotify: fix collision of internal and uapi mark flags



The new mark flag FAN_MARK_FILESYSTEMS collides with existing internal
flag FAN_MARK_ONDIR. Change internal flag value to avoid the collision.

Fixes: d54f4fba ("fanotify: add API to attach/detach super block mark")
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 96a71f21
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#include <uapi/linux/fanotify.h>

/* not valid from userspace, only kernel internal */
#define FAN_MARK_ONDIR		0x00000100
#define FAN_MARK_ONDIR		0x80000000

#define FAN_GROUP_FLAG(group, flag) \
	((group)->fanotify_data.flags & (flag))