aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib/kdoc/kdoc_output.py
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-11-29 14:38:05 +0100
committerChristian Brauner <brauner@kernel.org>2024-12-17 09:16:17 +0100
commitb3caba8f7a34a2bbaf45ffc6ff3a49b70afeb192 (patch)
tree292d86daacf8cb64d8bf4374a5cc2e8659dd8a3f /scripts/lib/kdoc/kdoc_output.py
parentexportfs: add permission method (diff)
downloadlinux-rng-b3caba8f7a34a2bbaf45ffc6ff3a49b70afeb192.tar.xz
linux-rng-b3caba8f7a34a2bbaf45ffc6ff3a49b70afeb192.zip
pidfs: implement file handle support
On 64-bit platforms, userspace can read the pidfd's inode in order to get a never-repeated PID identifier. On 32-bit platforms this identifier is not exposed, as inodes are limited to 32 bits. Instead expose the identifier via export_fh, which makes it available to userspace via name_to_handle_at. In addition we implement fh_to_dentry, which allows userspace to recover a pidfd from a pidfs file handle. Signed-off-by: Erin Shepherd <erin.shepherd@e43.eu> [brauner: patch heavily rewritten] Link: https://lore.kernel.org/r/20241129-work-pidfs-file_handle-v1-6-87d803a42495@kernel.org Reviewed-by: Amir Goldstein <amir73il@gmail.com> Co-Developed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions