aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2019-01-10 19:04:36 +0200
committerJan Kara <[email protected]>2019-02-07 16:38:35 +0100
commita8b13aa20afb69161b5123b4f1acc7ea0a03d360 (patch)
treefc886af970f46d54e78c9c430c9d82d0548fd108 /scripts/bpf_helpers_doc.py
parent5e469c830fdb5a1ebaa69b375b87f583326fd296 (diff)
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: <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions