]> git.hungrycats.org Git - linux/commit
fanotify: report thread pidfds for FAN_REPORT_TID
authorAnonymeMeow <anonymemeow@gmail.com>
Sun, 7 Jun 2026 00:33:42 +0000 (08:33 +0800)
committerJan Kara <jack@suse.cz>
Wed, 10 Jun 2026 09:07:47 +0000 (11:07 +0200)
commit17171128513b2e06aa68f8e889dc35f785e800ab
tree44abfd1976488ee5e10cf8c16fd586e8059abc8f
parentf58617ff687ba2d58f37ac88c12d004e9f68ae3a
fanotify: report thread pidfds for FAN_REPORT_TID

The FAN_REPORT_PIDFD and FAN_REPORT_TID flags used to be mutually
exclusive because by the time the pidfd support was introduced to
fanotify, pidfds could only be created for thread group leaders. Now
that the pidfd API supports thread-specific pidfds via PIDFD_THREAD,
this restriction can be lifted.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: AnonymeMeow <anonymemeow@gmail.com>
Link: https://patch.msgid.link/20260607003343.425939-2-anonymemeow@gmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c