]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fanotify: store fsid in mark instead of in connector
authorAmir Goldstein <amir73il@gmail.com>
Thu, 30 Nov 2023 16:56:18 +0000 (18:56 +0200)
committerJan Kara <jack@suse.cz>
Fri, 1 Dec 2023 09:55:21 +0000 (10:55 +0100)
commit7232522e6cafdf466ed7649c14546fd07ccc1978
tree98ea2a67370b70a911795536b30b5754330b0008
parent994d5c58e50e91bb02c7be4a91d5186292a895c8
fanotify: store fsid in mark instead of in connector

Some filesystems like fuse and nfs have zero or non-unique fsid.
We would like to avoid reporting ambiguous fsid in events, so we need
to avoid marking objects with same fsid and different sb.

To make this easier to enforce, store the fsid in the marks of the group
instead of in the shared conenctor.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20231130165619.3386452-2-amir73il@gmail.com>
fs/notify/fanotify/fanotify.c
fs/notify/fanotify/fanotify.h
fs/notify/fanotify/fanotify_user.c
fs/notify/mark.c
include/linux/fsnotify_backend.h