diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-03-22 20:39:44 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2021-04-19 17:03:48 +0300 |
commit | 59cda49ecf6c9a32fae4942420701b6e087204f6 (patch) | |
tree | 8a24983b9d5074a44a9ae419904de8b3dbb4f27e /mm/slab_common.c | |
parent | 9591c3a34f7722bd77f42c98d76fd5a5bad465f0 (diff) | |
download | linux-59cda49ecf6c9a32fae4942420701b6e087204f6.tar.xz |
shmem: allow reporting fanotify events with file handles on tmpfs
Since kernel v5.1, fanotify_init(2) supports the flag FAN_REPORT_FID
for identifying objects using file handle and fsid in events.
fanotify_mark(2) fails with -ENODEV when trying to set a mark on
filesystems that report null f_fsid in stasfs(2).
Use the digest of uuid as f_fsid for tmpfs to uniquely identify tmpfs
objects as best as possible and allow setting an fanotify mark that
reports events with file handles on tmpfs.
Link: https://lore.kernel.org/r/20210322173944.449469-3-amir73il@gmail.com
Acked-by: Hugh Dickins <hughd@google.com>
Reviewed-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'mm/slab_common.c')
0 files changed, 0 insertions, 0 deletions