summaryrefslogtreecommitdiff
path: root/include/uapi/linux/fanotify.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2021-11-29 23:15:35 +0300
committerJan Kara <jack@suse.cz>2021-12-15 17:55:53 +0300
commit2bfbcccde6e7a787feabad4645f628f963fe0663 (patch)
tree277e92c0ad85d9ed876a0167d3d0de9360b0aa2b /include/uapi/linux/fanotify.h
parent3982534ba5ce45e890b2f5ef5e7372c1accd14c7 (diff)
downloadlinux-2bfbcccde6e7a787feabad4645f628f963fe0663.tar.xz
fanotify: record either old name new name or both for FAN_RENAME
We do not want to report the dirfid+name of a directory whose inode/sb are not watched, because watcher may not have permissions to see the directory content. Use an internal iter_info to indicate to fanotify_alloc_event() which marks of this group are watching FAN_RENAME, so it can decide if we need to record only the old parent+name, new parent+name or both. Link: https://lore.kernel.org/r/20211129201537.1932819-10-amir73il@gmail.com Signed-off-by: Amir Goldstein <amir73il@gmail.com> [JK: Modified code to pass around only mask of mark types matching generated event] Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/uapi/linux/fanotify.h')
0 files changed, 0 insertions, 0 deletions