wifi: Use wpa_data_file instead of wifi_vendor_data_file
system/sepolicy already defines wpa_data_file, Use that instead of wifi_vendor_data_file Change-Id: I916724ed60162b2b32247f07cca9c1a69363c9fb CRs-Fixed: 2195448
This commit is contained in:
		
							
								
								
									
										1
									
								
								vendor/common/file.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/common/file.te
									
									
									
									
										vendored
									
									
								
							@@ -65,7 +65,6 @@ type cnd_data_file, file_type, data_file_type;
 | 
			
		||||
type location_data_file, file_type, data_file_type;
 | 
			
		||||
type vendor_audio_data_file, file_type, data_file_type;
 | 
			
		||||
type vendor_radio_data_file, file_type, data_file_type;
 | 
			
		||||
type wifi_vendor_data_file, file_type, data_file_type;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
type persist_file, file_type;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							@@ -181,7 +181,6 @@
 | 
			
		||||
/data/vendor/display(/.*)?             u:object_r:display_vendor_data_file:s0
 | 
			
		||||
/data/vendor/nfc(/.*)?                 u:object_r:nfc_vendor_data_file:s0
 | 
			
		||||
/data/vendor/radio(/.*)?               u:object_r:radio_vendor_data_file:s0
 | 
			
		||||
/data/vendor/wifi(/.*)?                u:object_r:wifi_vendor_data_file:s0
 | 
			
		||||
/data/vendor/ramdump(/.*)?             u:object_r:ramdump_vendor_data_file:s0
 | 
			
		||||
/data/vendor/ssrdump(/.*)?             u:object_r:ramdump_vendor_data_file:s0
 | 
			
		||||
/data/vendor/modem_dump(/.*)?          u:object_r:modem_dump_file:s0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								vendor/common/hal_wifi_supplicant.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/common/hal_wifi_supplicant.te
									
									
									
									
										vendored
									
									
								
							@@ -32,9 +32,9 @@ allow hal_wifi_supplicant_default self:socket create_socket_perms;
 | 
			
		||||
# ioctlcmd=c304, c302
 | 
			
		||||
allowxperm hal_wifi_supplicant_default self:socket ioctl msm_sock_ipc_ioctls;
 | 
			
		||||
 | 
			
		||||
allow hal_wifi_supplicant_default wifi_vendor_data_file:dir create_dir_perms;
 | 
			
		||||
allow hal_wifi_supplicant_default wifi_vendor_data_file:dir w_dir_perms;
 | 
			
		||||
allow hal_wifi_supplicant_default wifi_vendor_data_file:file create_file_perms;
 | 
			
		||||
allow hal_wifi_supplicant_default wpa_data_file:dir create_dir_perms;
 | 
			
		||||
allow hal_wifi_supplicant_default wpa_data_file:dir w_dir_perms;
 | 
			
		||||
allow hal_wifi_supplicant_default wpa_data_file:file create_file_perms;
 | 
			
		||||
# Permission for wpa socket which IMS use to communicate
 | 
			
		||||
# # Allow wpa_supplicant to send back wifi information to cnd
 | 
			
		||||
allow hal_wifi_supplicant_default { cnd ims }:unix_dgram_socket sendto;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								vendor/common/wcnss_service.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/common/wcnss_service.te
									
									
									
									
										vendored
									
									
								
							@@ -27,8 +27,8 @@ allow wcnss_service firmware_file:file r_file_perms;
 | 
			
		||||
allow wcnss_service sysfs_soc:dir search;
 | 
			
		||||
allow wcnss_service sysfs_soc:file r_file_perms;
 | 
			
		||||
 | 
			
		||||
allow wcnss_service wifi_vendor_data_file:dir create_dir_perms;
 | 
			
		||||
allow wcnss_service wifi_vendor_data_file:file create_file_perms;
 | 
			
		||||
allow wcnss_service wpa_data_file:dir create_dir_perms;
 | 
			
		||||
allow wcnss_service wpa_data_file:file create_file_perms;
 | 
			
		||||
 | 
			
		||||
allow wcnss_service proc_net:file getattr;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user