kernel_samsung_a53x/fs/notify
Amir Goldstein 7763fe9c2c fanotify: record either old name new name or both for FAN_RENAME
[ Upstream commit 2bfbcccde6e7a787feabad4645f628f963fe0663 ]

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>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:49 +01:00
..
dnotify fsnotify: generate FS_RENAME event with rich information 2024-11-19 12:27:49 +01:00
fanotify fanotify: record either old name new name or both for FAN_RENAME 2024-11-19 12:27:49 +01:00
inotify fsnotify: Pass group argument to free_event 2024-11-19 12:27:46 +01:00
fdinfo.c fanotify: fix permission model of unprivileged group 2024-11-19 12:27:37 +01:00
fdinfo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fsnotify.c fsnotify: generate FS_RENAME event with rich information 2024-11-19 12:27:49 +01:00
fsnotify.h fsnotify: count all objects with attached connectors 2024-11-19 12:27:44 +01:00
group.c fsnotify: clarify object type argument 2024-11-19 12:27:49 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mark.c fsnotify: separate mark iterator type from object type enum 2024-11-19 12:27:49 +01:00
notification.c fsnotify: Pass group argument to free_event 2024-11-19 12:27:46 +01:00