Remove init-sh files that are not needed
Change-Id: I4b588c258f1d50b956bace1b61d0964fa0848c10
This commit is contained in:
		
							
								
								
									
										6
									
								
								vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/common/file_contexts
									
									
									
									
										vendored
									
									
								
							@@ -117,12 +117,6 @@
 | 
			
		||||
/vendor/bin/chre                u:object_r:chre_exec:s0
 | 
			
		||||
/vendor/bin/time_daemon         u:object_r:time_daemon_exec:s0
 | 
			
		||||
/vendor/bin/imsrcsd             u:object_r:hal_rcsservice_exec:s0
 | 
			
		||||
/vendor/bin/init\.qcom\.devstart\.sh                                 u:object_r:init-qcom-devstart-sh_exec:s0
 | 
			
		||||
/vendor/bin/init\.qcom\.ipastart\.sh                                 u:object_r:init-qcom-ipastart-sh_exec:s0
 | 
			
		||||
/vendor/bin/init\.insmod\.sh                                         u:object_r:init-insmod-sh_exec:s0
 | 
			
		||||
/vendor/etc/init\.insmod\.cfg                                        u:object_r:init-insmod-sh_exec:s0
 | 
			
		||||
/vendor/bin/init\.power\.sh     u:object_r:init_power_exec:s0
 | 
			
		||||
/vendor/bin/init\.radio\.sh     u:object_r:init_radio_exec:s0
 | 
			
		||||
 | 
			
		||||
/vendor/bin/hw/android\.hardware\.drm@1\.0-service.widevine          u:object_r:hal_drm_widevine_exec:s0
 | 
			
		||||
/vendor/bin/hw/android\.hardware\.vibrator@1\.1-service.crosshatch        u:object_r:hal_vibrator_default_exec:s0
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								vendor/common/init-devstart-sh.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/common/init-devstart-sh.te
									
									
									
									
										vendored
									
									
								
							@@ -1,16 +0,0 @@
 | 
			
		||||
type init-qcom-devstart-sh, domain;
 | 
			
		||||
type init-qcom-devstart-sh_exec, exec_type, vendor_file_type, file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(init-qcom-devstart-sh)
 | 
			
		||||
 | 
			
		||||
allow init-qcom-devstart-sh vendor_shell_exec:file rx_file_perms;
 | 
			
		||||
allow init-qcom-devstart-sh vendor_toolbox_exec:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
# execute grep
 | 
			
		||||
allow init-qcom-devstart-sh vendor_file:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
# Set the sys.qcom.devup property
 | 
			
		||||
set_prop(init-qcom-devstart-sh, system_prop)
 | 
			
		||||
 | 
			
		||||
# Set boot_adsp and boot_slpi to 1
 | 
			
		||||
allow init-qcom-devstart-sh sysfs_msm_subsys:file w_file_perms;
 | 
			
		||||
							
								
								
									
										16
									
								
								vendor/common/init-insmod-sh.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								vendor/common/init-insmod-sh.te
									
									
									
									
										vendored
									
									
								
							@@ -1,16 +0,0 @@
 | 
			
		||||
type init-insmod-sh, domain;
 | 
			
		||||
type init-insmod-sh_exec, exec_type, vendor_file_type, file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(init-insmod-sh)
 | 
			
		||||
 | 
			
		||||
allow init-insmod-sh vendor_shell_exec:file rx_file_perms;
 | 
			
		||||
allow init-insmod-sh vendor_toolbox_exec:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
# Set the sys.touch.modules.ready property
 | 
			
		||||
set_prop(init-insmod-sh, system_prop)
 | 
			
		||||
 | 
			
		||||
# Allow insmod
 | 
			
		||||
allow init-insmod-sh self:capability sys_module;
 | 
			
		||||
allow init-insmod-sh system_file:system module_load;
 | 
			
		||||
 | 
			
		||||
allow init-insmod-sh vendor_file:system module_load;
 | 
			
		||||
							
								
								
									
										10
									
								
								vendor/common/init-ipastart-sh.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/common/init-ipastart-sh.te
									
									
									
									
										vendored
									
									
								
							@@ -1,10 +0,0 @@
 | 
			
		||||
type init-qcom-ipastart-sh, domain;
 | 
			
		||||
type init-qcom-ipastart-sh_exec, exec_type, vendor_file_type, file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(init-qcom-ipastart-sh)
 | 
			
		||||
 | 
			
		||||
allow init-qcom-ipastart-sh vendor_shell_exec:file rx_file_perms;
 | 
			
		||||
allow init-qcom-ipastart-sh vendor_toolbox_exec:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
# Set /dev/ipa to 1
 | 
			
		||||
allow init-qcom-ipastart-sh ipa_dev:chr_file w_file_perms;
 | 
			
		||||
							
								
								
									
										18
									
								
								vendor/common/init_power.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/common/init_power.te
									
									
									
									
										vendored
									
									
								
							@@ -1,18 +0,0 @@
 | 
			
		||||
type init_power, domain;
 | 
			
		||||
type init_power_exec, exec_type, vendor_file_type, file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(init_power)
 | 
			
		||||
 | 
			
		||||
set_prop(init_power, post_boot_prop)
 | 
			
		||||
 | 
			
		||||
allow init_power vendor_shell_exec:file rx_file_perms;
 | 
			
		||||
allow init_power vendor_toolbox_exec:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
r_dir_file(init_power, sysfs_msm_subsys)
 | 
			
		||||
 | 
			
		||||
allow init_power sysfs_msm_subsys:file write;
 | 
			
		||||
allow init_power sysfs_thermal:dir search;
 | 
			
		||||
allow init_power sysfs_thermal:file w_file_perms;
 | 
			
		||||
allow init_power sysfs_devices_system_cpu:file w_file_perms;
 | 
			
		||||
allow init_power sysfs_soc:file r_file_perms;
 | 
			
		||||
allow init_power sysfs_soc:dir search;
 | 
			
		||||
							
								
								
									
										11
									
								
								vendor/common/init_radio.te
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/common/init_radio.te
									
									
									
									
										vendored
									
									
								
							@@ -1,11 +0,0 @@
 | 
			
		||||
# /vendor/bin/init.radio.sh
 | 
			
		||||
type init_radio, domain;
 | 
			
		||||
type init_radio_exec, exec_type, vendor_file_type, file_type;
 | 
			
		||||
 | 
			
		||||
init_daemon_domain(init_radio)
 | 
			
		||||
 | 
			
		||||
allow init_radio vendor_shell_exec:file rx_file_perms;
 | 
			
		||||
allow init_radio vendor_toolbox_exec:file rx_file_perms;
 | 
			
		||||
 | 
			
		||||
allow init_radio radio_vendor_data_file:dir create_dir_perms;
 | 
			
		||||
allow init_radio radio_vendor_data_file:file create_file_perms;
 | 
			
		||||
		Reference in New Issue
	
	Block a user