forked from mirrors/linux
		
	 295d3c4412
			
		
	
	
		295d3c4412
		
			
		
	
	
	
	
		
			
			This makes it harder for accidental or malicious changes to sockfs_xattr_handlers at runtime. Cc: "David S. Miller" <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: netdev@vger.kernel.org Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Link: https://lore.kernel.org/r/20230930050033.41174-30-wedsonaf@gmail.com Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __LINUX_PSEUDO_FS__
 | |
| #define __LINUX_PSEUDO_FS__
 | |
| 
 | |
| #include <linux/fs_context.h>
 | |
| 
 | |
| struct pseudo_fs_context {
 | |
| 	const struct super_operations *ops;
 | |
| 	const struct xattr_handler * const *xattr;
 | |
| 	const struct dentry_operations *dops;
 | |
| 	unsigned long magic;
 | |
| };
 | |
| 
 | |
| struct pseudo_fs_context *init_pseudo(struct fs_context *fc,
 | |
| 				      unsigned long magic);
 | |
| 
 | |
| #endif
 |