Skip to content

RFC pidfs: allow retrieval of namespace descriptors

Christian Brauner linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected] change-id 20240627-work-pidfs-fd415f4d3cd1

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4file: add take_fd() cleanup helperinclude/linux/cleanup.h include/linux/file.h+10 -52 replies
2/4nsproxy: add a cleanup helper for nsproxyinclude/linux/nsproxy.h+2 -00 replies
3/4nsfs: add open_namespace()fs/internal.h fs/nsfs.c+32 -240 replies
4/4pidfs: allow retrieval of namespace file descriptorsfs/pidfs.c include/uapi/linux/pidfd.h+106 -00 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff LaytonJosef BacikAlexander Mikhalitsyn
SeriesR-b R-b R-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH RFC 0/4] pidfs: allow retrieval of namespace descriptors

In recent discussions it became clear that having the ability to go from pidfd to namespace file descriptor is desirable. Not just because it is already possible to use pidfds with setns() to switch namespaces atomically but also because it makes it possible to interact with namespaces without having procfs mounted solely relying on the pidfd.

This adds support from deriving a namespace file descriptor from a pidfd for all namespace types.

Thanks!
Christian

---
---
base-commit: 2a79498f76350570427af72da04b1c7d0e24149e
change-id: 20240627-work-pidfs-fd415f4d3cd1