Searched hist:"59 cda49ecf6c9a32fae4942420701b6e087204f6" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/mm/ |
H A D | shmem.c | diff 59cda49ecf6c9a32fae4942420701b6e087204f6 Mon Mar 22 12:39:44 CDT 2021 Amir Goldstein <amir73il@gmail.com> 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>
|