Add rule for lib_name access from perfhal
Adding new sysfs label and sepolcies for perfhal denials, related to lib_name access. CRs-Fixed: 2102404 Change-Id: Id6c89b34688fa5b172aba89166c25ba32206e6c3
This commit is contained in:
		@@ -98,6 +98,7 @@ type sysfs_scsi_host, fs_type, sysfs_type;
 | 
			
		||||
type sysfs_cpu_boost, fs_type, sysfs_type;
 | 
			
		||||
type sysfs_msm_perf, fs_type, sysfs_type;
 | 
			
		||||
type sysfs_memory, fs_type, sysfs_type;
 | 
			
		||||
type sysfs_lib, fs_type, sysfs_type;
 | 
			
		||||
 | 
			
		||||
#define the files writer during the operation of app state changes
 | 
			
		||||
type gamed_socket, file_type;
 | 
			
		||||
 
 | 
			
		||||
@@ -443,6 +443,7 @@
 | 
			
		||||
/sys/module/lpm_stats(/.*)?                                         u:object_r:sysfs_msm_stats:s0
 | 
			
		||||
/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
 | 
			
		||||
 | 
			
		||||
###################################
 | 
			
		||||
# data files
 | 
			
		||||
 
 | 
			
		||||
@@ -46,6 +46,7 @@ allow hal_perf_default mpctl_data_file:dir rw_dir_perms;
 | 
			
		||||
allow hal_perf_default mpctl_data_file:file create_file_perms;
 | 
			
		||||
allow hal_perf_default lm_data_file:dir rw_dir_perms;
 | 
			
		||||
allow hal_perf_default lm_data_file:file create_file_perms;
 | 
			
		||||
allow hal_perf_default sysfs_lib:file w_file_perms;
 | 
			
		||||
 | 
			
		||||
allow hal_perf {
 | 
			
		||||
    sysfs_devices_system_cpu
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user