summaryrefslogtreecommitdiff
path: root/include/linux/fanotify.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-10-04 00:25:32 +0300
committerJan Kara <jack@suse.cz>2018-10-04 14:27:48 +0300
commitb723a7911d028fb55f67a63c4c4d895f72e059d4 (patch)
tree4813df460221aa82c8cce00628e0c9fc309736a3 /include/linux/fanotify.h
parent96a71f21ef1fcc32bea07c612a332a89a213f054 (diff)
downloadlinux-b723a7911d028fb55f67a63c4c4d895f72e059d4.tar.xz
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: d54f4fba889b ("fanotify: add API to attach/detach super block mark") Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/linux/fanotify.h')
-rw-r--r--include/linux/fanotify.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index 9c5ea3bdfaa0..e70fccc3757e 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -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))