SEAndroid: Add Atfwd daemon related policies
Add ATFWD daemon context and 'allow' policies in order for its full functionality. Change-Id: I9dcfdb94f6502a510331b3f11e8b4ecfe56a5931
This commit is contained in:
		
				
					committed by
					
						
						Avijit Kanti Das
					
				
			
			
				
	
			
			
			
						parent
						
							45df9ab9bb
						
					
				
				
					commit
					3fef26f444
				
			@@ -14,6 +14,7 @@ BOARD_SEPOLICY_UNION := \
 | 
			
		||||
       adbd.te \
 | 
			
		||||
       qmuxd.te \
 | 
			
		||||
       netmgrd.te \
 | 
			
		||||
       atfwd.te \
 | 
			
		||||
       smd_test.te \
 | 
			
		||||
       qmi_ping.te \
 | 
			
		||||
       qmi_test_service.te \
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								atfwd.te
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								atfwd.te
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
type atfwd, domain;
 | 
			
		||||
type atfwd_exec, exec_type, file_type;
 | 
			
		||||
 | 
			
		||||
# Started by init
 | 
			
		||||
init_daemon_domain(atfwd)
 | 
			
		||||
 | 
			
		||||
#============= atfwd ==============
 | 
			
		||||
#Set CTL property
 | 
			
		||||
allow atfwd ctl_default_prop:property_service set;
 | 
			
		||||
 | 
			
		||||
#Allow logging
 | 
			
		||||
allow atfwd diag_device:chr_file { read write open };
 | 
			
		||||
 | 
			
		||||
# Talks to init via the property socket.
 | 
			
		||||
unix_socket_connect(atfwd, property, init);
 | 
			
		||||
 | 
			
		||||
# Creates/Talks to qmuxd via the qmux_radio socket.
 | 
			
		||||
unix_socket_connect(atfwd, qmux_radio, qmuxd);
 | 
			
		||||
allow atfwd qmux_radio_socket:sock_file create;
 | 
			
		||||
allow atfwd qmux_radio_socket:dir { write search add_name };
 | 
			
		||||
 | 
			
		||||
#Allow IPC binding with ServiceManager & System apps
 | 
			
		||||
allow atfwd servicemanager:binder call;
 | 
			
		||||
allow atfwd system_app:binder call;
 | 
			
		||||
@@ -30,6 +30,9 @@
 | 
			
		||||
/system/bin/qmuxd          u:object_r:qmuxd_exec:s0
 | 
			
		||||
/dev/kgsl-3d0        u:object_r:gpu_device:s0
 | 
			
		||||
 | 
			
		||||
#Context for ATFWD daemon
 | 
			
		||||
/system/bin/ATFWD-daemon   u:object_r:atfwd_exec:s0
 | 
			
		||||
 | 
			
		||||
/dev/smd.*  	 	u:object_r:smd_device:s0
 | 
			
		||||
/system/bin/irsc_util		u:object_r:irsc_util_exec:s0
 | 
			
		||||
# Persist filesystem
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user