diff options
author | Amir Goldstein <amir73il@gmail.com> | 2019-01-10 19:04:36 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-02-07 16:38:35 +0100 |
commit | a8b13aa20afb69161b5123b4f1acc7ea0a03d360 (patch) | |
tree | fc886af970f46d54e78c9c430c9d82d0548fd108 /fs/ufs/util.h | |
parent | 5e469c830fdb5a1ebaa69b375b87f583326fd296 (diff) | |
download | linux-stable-a8b13aa20afb69161b5123b4f1acc7ea0a03d360.tar.gz linux-stable-a8b13aa20afb69161b5123b4f1acc7ea0a03d360.tar.bz2 linux-stable-a8b13aa20afb69161b5123b4f1acc7ea0a03d360.zip |
fanotify: enable FAN_REPORT_FID init flag
When setting up an fanotify listener, user may request to get fid
information in event instead of an open file descriptor.
The fid obtained with event on a watched object contains the file
handle returned by name_to_handle_at(2) and fsid returned by statfs(2).
Restrict FAN_REPORT_FID to class FAN_CLASS_NOTIF, because we have have
no good reason to support reporting fid on permission events.
When setting a mark, we need to make sure that the filesystem
supports encoding file handles with name_to_handle_at(2) and that
statfs(2) encodes a non-zero fsid.
Cc: <linux-api@vger.kernel.org>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ufs/util.h')
0 files changed, 0 insertions, 0 deletions