forked from mirrors/linux
		
	 ef4144ac2d
			
		
	
	
		ef4144ac2d
		
			
		
	
	
	
	
		
			
			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>
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			356 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			11 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 */
 |