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 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | fanotify: copy event fid info to user (diff) | |
| download | linux-a8b13aa20afb69161b5123b4f1acc7ea0a03d360.tar.gz linux-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 '')
0 files changed, 0 insertions, 0 deletions
