aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-12-22 11:03:19 +0100
committerChristian Brauner <brauner@kernel.org>2024-12-22 11:03:19 +0100
commit3781680fba3eab0b34b071cb9443fd5ad92d23cf (patch)
tree82dfe679fafa184df26af5425b28d81b73b8f45f /include
parentpidfs: lookup pid through rbtree (diff)
parentselftests: add pidfd bind-mount tests (diff)
downloadwireguard-linux-3781680fba3eab0b34b071cb9443fd5ad92d23cf.tar.xz
wireguard-linux-3781680fba3eab0b34b071cb9443fd5ad92d23cf.zip
Merge patch series "pidfs: support bind-mounts"
Christian Brauner <brauner@kernel.org> says: 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. Instead of checking d_ops for both nsfs and pidfs we could in a follow-up patch add a flag argument to struct dentry_operations that functions similar to file_operations->fop_flags. * patches from https://lore.kernel.org/r/20241219-work-pidfs-mount-v1-0-dbc56198b839@kernel.org: selftests: add pidfd bind-mount tests pidfs: allow bind-mounts Link: https://lore.kernel.org/r/20241219-work-pidfs-mount-v1-0-dbc56198b839@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
-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 */