sdm660-common: sepolicy: Add permission to access proc_energy_aware file node
This reverts commit 2c07bbc96e
.
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
c4050270fd
commit
e279964f3c
4 changed files with 7 additions and 0 deletions
4
sepolicy/vendor/file.te
vendored
4
sepolicy/vendor/file.te
vendored
|
@ -25,3 +25,7 @@ type audio_socket, file_type;
|
||||||
|
|
||||||
# Battery Saver
|
# Battery Saver
|
||||||
type sysfs_battery_saver, fs_type, sysfs_type;
|
type sysfs_battery_saver, fs_type, sysfs_type;
|
||||||
|
|
||||||
|
# PowerHAL
|
||||||
|
type proc_sched_energy_aware, proc_type, fs_type;
|
||||||
|
|
||||||
|
|
1
sepolicy/vendor/genfs_contexts
vendored
1
sepolicy/vendor/genfs_contexts
vendored
|
@ -54,6 +54,7 @@ genfscon sysfs /devices/platform/soc/soc:qcom,cpubw
|
||||||
genfscon sysfs /devices/platform/soc/soc:qcom,mincpubw u:object_r:sysfs_devfreq:s0
|
genfscon sysfs /devices/platform/soc/soc:qcom,mincpubw u:object_r:sysfs_devfreq:s0
|
||||||
genfscon sysfs /devices/platform/soc/soc:qcom,memlat-cpu0 u:object_r:sysfs_devfreq:s0
|
genfscon sysfs /devices/platform/soc/soc:qcom,memlat-cpu0 u:object_r:sysfs_devfreq:s0
|
||||||
genfscon sysfs /devices/platform/soc/soc:qcom,memlat-cpu4 u:object_r:sysfs_devfreq:s0
|
genfscon sysfs /devices/platform/soc/soc:qcom,memlat-cpu4 u:object_r:sysfs_devfreq:s0
|
||||||
|
genfscon proc /sys/kernel/sched_energy_aware u:object_r:proc_sched_energy_aware:s0
|
||||||
|
|
||||||
# Touchpanel
|
# Touchpanel
|
||||||
genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0
|
genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0
|
||||||
|
|
1
sepolicy/vendor/hal_power_default.te
vendored
1
sepolicy/vendor/hal_power_default.te
vendored
|
@ -4,6 +4,7 @@ allow hal_power_default latency_device:chr_file rw_file_perms;
|
||||||
allow hal_power_default sysfs_battery_saver:dir r_dir_perms;
|
allow hal_power_default sysfs_battery_saver:dir r_dir_perms;
|
||||||
allow hal_power_default sysfs_battery_saver:file rw_file_perms;
|
allow hal_power_default sysfs_battery_saver:file rw_file_perms;
|
||||||
allow hal_power_default proc:{ file lnk_file } rw_file_perms;
|
allow hal_power_default proc:{ file lnk_file } rw_file_perms;
|
||||||
|
allow hal_power_default proc_sched_energy_aware:file rw_file_perms;
|
||||||
allow hal_power_default { sysfs_devfreq sysfs_kgsl }:dir search;
|
allow hal_power_default { sysfs_devfreq sysfs_kgsl }:dir search;
|
||||||
allow hal_power_default { sysfs_devfreq sysfs_kgsl }:{ file lnk_file } rw_file_perms;
|
allow hal_power_default { sysfs_devfreq sysfs_kgsl }:{ file lnk_file } rw_file_perms;
|
||||||
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
|
allow hal_power_default sysfs_devices_system_cpu:file rw_file_perms;
|
||||||
|
|
1
sepolicy/vendor/vendor_init.te
vendored
1
sepolicy/vendor/vendor_init.te
vendored
|
@ -9,6 +9,7 @@ allow vendor_init {
|
||||||
allow vendor_init tee_device:chr_file getattr;
|
allow vendor_init tee_device:chr_file getattr;
|
||||||
allow vendor_init persist_file:lnk_file r_file_perms;
|
allow vendor_init persist_file:lnk_file r_file_perms;
|
||||||
allow vendor_init proc:file w_file_perms;
|
allow vendor_init proc:file w_file_perms;
|
||||||
|
allow vendor_init proc_sched_energy_aware:file w_file_perms;
|
||||||
|
|
||||||
get_prop(vendor_init, hal_fingerprint_prop)
|
get_prop(vendor_init, hal_fingerprint_prop)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue