summaryrefslogtreecommitdiff
path: root/include/linux/pidfs.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-12-19 18:01:32 +0100
committerChristian Brauner <brauner@kernel.org>2024-12-22 11:03:10 +0100
commitef4144ac2dec35d47de666f35cd873eb1be4172e (patch)
tree0d8b83e84eb3d0dfaff7293eaadf2979684a4346 /include/linux/pidfs.h
parent16ecd47cb0cd895c7c2f5dd5db50f6c005c51639 (diff)
pidfs: allow bind-mounts
Allow bind-mounting pidfds. Similar to nsfs let's allow bind-mounts for pidfds. This allows pidfds to be safely recovered and checked for process recycling. Link: https://lore.kernel.org/r/20241219-work-pidfs-mount-v1-1-dbc56198b839@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/pidfs.h')
-rw-r--r--include/linux/pidfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pidfs.h b/include/linux/pidfs.h
index df574d6708d4..7c830d0dec9a 100644
--- a/include/linux/pidfs.h
+++ b/include/linux/pidfs.h
@@ -6,5 +6,6 @@ struct file *pidfs_alloc_file(struct pid *pid, unsigned int flags);
void __init pidfs_init(void);
void pidfs_add_pid(struct pid *pid);
void pidfs_remove_pid(struct pid *pid);
+extern const struct dentry_operations pidfs_dentry_operations;
#endif /* _LINUX_PID_FS_H */