fanotify: deprecate uapi FAN_ALL_* constants
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Oct 2018 21:25:35 +0000 (00:25 +0300)
committerJan Kara <jack@suse.cz>
Thu, 4 Oct 2018 11:28:38 +0000 (13:28 +0200)
commit23c9deeb3285d34fd243abb3d6b9f07db60c3cf4
tree85b9ab86150fcc5294b2f0d82f6a970571203c07
parenta72fd224e37bf6a0630bce302deebbccbc236ba2
fanotify: deprecate uapi FAN_ALL_* constants

We do not want to add new bits to the FAN_ALL_* uapi constants
because they have been exposed to userspace.  If there are programs
out there using these constants, those programs could break if
re-compiled with modified FAN_ALL_* constants and run on an old kernel.

We deprecate the uapi constants FAN_ALL_* and define new FANOTIFY_*
constants for internal use to replace them. New feature bits will be
added only to the new constants.

Cc: <linux-api@vger.kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c
include/linux/fanotify.h
include/uapi/linux/fanotify.h