mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-09 00:08:12 +08:00
JIRA: https://issues.redhat.com/browse/RHEL-107520 Conflicts: A merge conflict with the include file hunk of fs/namespace.c due to missing upstream commit b4c2bea8ceaa ("add listmount(2) syscall"). commit ef4144ac2dec35d47de666f35cd873eb1be4172e Author: Christian Brauner <brauner@kernel.org> Date: Thu, 19 Dec 2024 18:01:32 +0100 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> Signed-off-by: Waiman Long <longman@redhat.com>
12 lines
356 B
C
12 lines
356 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_PID_FS_H
|
|
#define _LINUX_PID_FS_H
|
|
|
|
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 */
|