These patches are in order to add an identifier other than fd which can be used to respond to fanotify permission events. This is useful for HSM use cases which are backed by a daemon to respond reliably [1] and also for reporting pre-dir-content events without an event->fd [2] The first few patches in the series are pulled in from Amir's work to add support for pre-dir-content events. In terms of testing, there are some additional LTP test cases to go with these patches which exercise responding to events via response identifier [3] Changes v1 => v2: Moved away from adding a unique event identifier, and instead overload event->fd to support a response identifier for now for FAN_REPORT_FID setting. v1: https://lore.kernel.org/linux-fsdevel/20250623193631.2780278-1-ibrahimjirdeh@xxxxxxxx/ [1] https://lore.kernel.org/all/CAMp4zn8aXNPzq1i8KYmbRfwDBvO5Qefa4isSyS1bwYuvkuBsHg@xxxxxxxxxxxxxx/ [2] https://lore.kernel.org/linux-fsdevel/2dx3pbcnv5w75fxb2ghqtsk6gzl6cuxmd2rinzwbq7xxfjf5z7@3nqidi3mno46/ [3] https://github.com/ibrahim-jirdeh/ltp/commit/4cdb1ac3b22be7b332cc18ff193686f2be7ea69d Amir Goldstein (2): fanotify: add support for a variable length permission event fanotify: allow pre-content events with fid info Ibrahim Jirdeh (1): fanotify: introduce event response identifier fs/notify/fanotify/fanotify.c | 81 ++++++++--- fs/notify/fanotify/fanotify.h | 26 +++- fs/notify/fanotify/fanotify_user.c | 201 +++++++++++++++++++--------- include/linux/fanotify.h | 3 +- include/linux/fsnotify_backend.h | 2 + include/uapi/linux/fanotify.h | 15 ++- tools/include/uapi/linux/fanotify.h | 15 ++- 7 files changed, 249 insertions(+), 94 deletions(-) -- 2.47.1