Skip to content

Add pidfd support to the fanotify API

Matthew Bobrowski linux-api linux-fsdevel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 3 repliesIn review
  2. v35 patches 35 repliesSuperseded
  3. v25 patches 14 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches32 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kernel/pid.c: remove static qualifier from pidfd_create()include/linux/pid.h kernel/pid.c+4 -10 replies
2/5kernel/pid.c: implement additional checks upon pidfd_create() parameterskernel/pid.c+7 -40 replies
3/5fanotify: minor cosmetic adjustments to fid labelsfs/notify/fanotify/fanotify_user.c+19 -140 replies
4/5fanotify: introduce a generic info record copying helperfs/notify/fanotify/fanotify_user.c include/linux/fanotify.h+90 -670 replies
5/5fanotify: add pidfd support to the fanotify APIfs/notify/fanotify/fanotify_user.c include/linux/fanotify.h include/uapi/linux/fanotify.h+97 -60 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchChristian BraunerAmir Goldstein
1/5A-b
2/5A-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] Add pidfd support to the fanotify API

Hey Jan/Amir,

This is V5 of the FAN_REPORT_PIDFD patch series. It contains the minor comment/commit description fixes that were picked up by Amir in the last series review [0, 1].

LTP tests for this API change can be found here [2]. Man page updates for this change can be found here [3].

[0] https://lore.kernel.org/linux-fsdevel/CAOQ4uxhnCk+FXK_e_GA=jC_0HWO+3ZdwHSi=zCa2Kpb0NDxBSg@mail.gmail.com/
[1] https://lore.kernel.org/linux-fsdevel/CAOQ4uxgO3oViTSFZ0zs6brrHrmw362r1C9SQ7g6=XgRwyrzMuw@mail.gmail.com/
[2] https://github.com/matthewbobrowski/ltp/tree/fanotify_pidfd_v2
[3] https://github.com/matthewbobrowski/man-pages/tree/fanotify_pidfd_v1

Matthew Bobrowski (5):
kernel/pid.c: remove static qualifier from pidfd_create() kernel/pid.c: implement additional checks upon pidfd_create()
parameters
fanotify: minor cosmetic adjustments to fid labels
fanotify: introduce a generic info record copying helper
fanotify: add pidfd support to the fanotify API

 fs/notify/fanotify/fanotify_user.c | 251 ++++++++++++++++++++---------
 include/linux/fanotify.h           |   3 +
 include/linux/pid.h                |   1 +
 include/uapi/linux/fanotify.h      |  13 ++
 kernel/pid.c                       |  15 +-
 5 files changed, 204 insertions(+), 79 deletions(-)
Signature · 3 lines
2.32.0.605.g8dce9f2422-goog

/M