diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-11-29 21:15:35 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-12-15 15:55:53 +0100 |
commit | 2bfbcccde6e7a787feabad4645f628f963fe0663 (patch) | |
tree | 277e92c0ad85d9ed876a0167d3d0de9360b0aa2b /include/xen/interface/version.h | |
parent | fanotify: record old and new parent and name in FAN_RENAME event (diff) | |
download | linux-2bfbcccde6e7a787feabad4645f628f963fe0663.tar.xz linux-2bfbcccde6e7a787feabad4645f628f963fe0663.zip |
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/xen/interface/version.h')
0 files changed, 0 insertions, 0 deletions