mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	selinux: allow per-file labelling for binderfs
This patch allows genfscon per-file labeling for binderfs. This is required to have separate permissions to allow access to binder, hwbinder and vndbinder devices which are relocating to binderfs. Acked-by: Jeff Vander Stoep <jeffv@google.com> Acked-by: Mark Salyzyn <salyzyn@android.com> Signed-off-by: Hridya Valsaraju <hridya@google.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
		
							parent
							
								
									7e78c87514
								
							
						
					
					
						commit
						7a4b519474
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -752,6 +752,7 @@ static int selinux_set_mnt_opts(struct super_block *sb,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!strcmp(sb->s_type->name, "debugfs") ||
 | 
						if (!strcmp(sb->s_type->name, "debugfs") ||
 | 
				
			||||||
	    !strcmp(sb->s_type->name, "tracefs") ||
 | 
						    !strcmp(sb->s_type->name, "tracefs") ||
 | 
				
			||||||
 | 
						    !strcmp(sb->s_type->name, "binderfs") ||
 | 
				
			||||||
	    !strcmp(sb->s_type->name, "pstore"))
 | 
						    !strcmp(sb->s_type->name, "pstore"))
 | 
				
			||||||
		sbsec->flags |= SE_SBGENFS;
 | 
							sbsec->flags |= SE_SBGENFS;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue