sepolicy : set write permissions for sysfs_boot_adsp.
allow sysfs_boot_adsp write permissions to /sys/kernel/boot_adsp/boot node. Change-Id: I370c6be54b0cad987fb679b66c3d8f8552c3c99a
This commit is contained in:
		@@ -293,3 +293,6 @@ type sysfs_msm_power, fs_type, sysfs_type;
 | 
			
		||||
type qvop-daemon_data_file, file_type, data_file_type;
 | 
			
		||||
 | 
			
		||||
type sysfs_fm, sysfs_type, fs_type;
 | 
			
		||||
 | 
			
		||||
# for adsp to load /sys/kernel/b ot_adsp/boot
 | 
			
		||||
type sysfs_boot_adsp, sysfs_type, fs_type;
 | 
			
		||||
 
 | 
			
		||||
@@ -444,6 +444,7 @@
 | 
			
		||||
/sys/module/lpm_levels(/.*)?                                        u:object_r:sysfs_msm_power:s0
 | 
			
		||||
/sys/module/radio_iris_transport/parameters/fmsmd_set               u:object_r:sysfs_fm:s0
 | 
			
		||||
/sys/module/app_setting/parameters/lib_name                         u:object_r:sysfs_lib:s0
 | 
			
		||||
/sys/kernel/boot_adsp/boot                                          u:object_r:sysfs_boot_adsp:s0
 | 
			
		||||
 | 
			
		||||
###################################
 | 
			
		||||
# data files
 | 
			
		||||
 
 | 
			
		||||
@@ -32,6 +32,8 @@ allow init configfs:lnk_file create_file_perms;
 | 
			
		||||
allow init firmware_file:dir { mounton };
 | 
			
		||||
allow init bt_firmware_file:dir { mounton };
 | 
			
		||||
 | 
			
		||||
allow init sysfs_boot_adsp:file write;
 | 
			
		||||
 | 
			
		||||
#dontaudit non configfs usb denials
 | 
			
		||||
dontaudit init sysfs:dir write;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user