Revert : Allow fastbootd to access power_supply, usb nodes.
This change allows fastbootd (for healthd) to access the power_supply and usb nodes. Revert of: Ib5c637b28dd65c6958778b02c3026c90b39fe713 Change-Id: I992165d490438f7ff7c73cb4b0e57442fdda8c02
This commit is contained in:
		
				
					committed by
					
						
						Gerrit - the friendly Code Review server
					
				
			
			
				
	
			
			
			
						parent
						
							9419b1e8cf
						
					
				
				
					commit
					f479e5ffb0
				
			
							
								
								
									
										8
									
								
								legacy/vendor/common/fastbootd.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								legacy/vendor/common/fastbootd.te
									
									
									
									
										vendored
									
									
								
							@@ -39,11 +39,11 @@ allow fastbootd {
 | 
			
		||||
# Allow fastbootd to read /sys/class/power_supply directory
 | 
			
		||||
# and access to power supply, usb nodes.
 | 
			
		||||
allow fastbootd sysfs:dir r_dir_perms;
 | 
			
		||||
r_dir_file(fastbootd, vendor_sysfs_battery_supply)
 | 
			
		||||
r_dir_file(fastbootd, vendor_sysfs_usb_supply)
 | 
			
		||||
r_dir_file(fastbootd, sysfs_battery_supply)
 | 
			
		||||
r_dir_file(fastbootd, sysfs_usb_supply)
 | 
			
		||||
allow fastbootd {
 | 
			
		||||
    vendor_sysfs_battery_supply
 | 
			
		||||
    vendor_sysfs_usb_supply
 | 
			
		||||
    sysfs_battery_supply
 | 
			
		||||
    sysfs_usb_supply
 | 
			
		||||
}:file w_file_perms;
 | 
			
		||||
')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user