init-power-sh.te 1.31 KB
Newer Older
1
# init-power-sh service
2
type init-power-sh, domain;
3
4
type init-power-sh_exec, exec_type, file_type;

5
# Started by init
6
7
init_daemon_domain(init-power-sh)

8
9
10
allow init-power-sh file_contexts_file:file r_file_perms;
allow init-power-sh proc:file rw_file_perms;
allow init-power-sh proc_kernel_sched:file w_file_perms;
11
allow init-power-sh shell_exec:file r_file_perms;
12
13
14
allow init-power-sh sysfs_cpu_boost:dir search;
allow init-power-sh sysfs_cpu_boost:file rw_file_perms;
allow init-power-sh sysfs_devices_system_cpu:{ dir file lnk_file } relabelto;
15
allow init-power-sh sysfs_devices_system_cpu:file w_file_perms;
16
17
18
19
20
21
allow init-power-sh sysfs:{ dir file lnk_file } relabelfrom;
allow init-power-sh sysfs:dir { open read };
allow init-power-sh sysfs:file rw_file_perms;
allow init-power-sh sysfs_kgsl:file rw_file_perms;
allow init-power-sh sysfs_msm_perf:dir search;
allow init-power-sh sysfs_msm_perf:file rw_file_perms;
22
23
allow init-power-sh sysfs_performance:dir r_dir_perms;
allow init-power-sh sysfs_performance:file w_file_perms;
24
25
allow init-power-sh sysfs_rqstats:dir r_dir_perms;
allow init-power-sh sysfs_rqstats:file r_file_perms;
26
27
28
29
allow init-power-sh sysfs_thermal:dir r_dir_perms;
allow init-power-sh sysfs_thermal:file rw_file_perms;
allow init-power-sh sysfs_usb:file w_file_perms;
allow init-power-sh toolbox_exec:file rx_file_perms;