sdm660-common: Kang more pixel power HAL sepolicy

* Kanged from mata (with all available nodes on msm4.4)
This commit is contained in:
Subhajeet Muhuri 2021-02-17 03:29:33 +08:00 committed by OdSazib
parent 9bcab6d776
commit 7d8fc30985
No known key found for this signature in database
GPG key ID: B678DBD07079B021
4 changed files with 16 additions and 1 deletions

View file

@ -18,6 +18,9 @@
/sys/devices/soc/soc:fpc1020(/.*)? u:object_r:fingerprint_sysfs:s0 /sys/devices/soc/soc:fpc1020(/.*)? u:object_r:fingerprint_sysfs:s0
/sys/bus/platform/devices/soc:fingerprint_fpc(/.*)? u:object_r:fingerprint_sysfs:s0 /sys/bus/platform/devices/soc:fingerprint_fpc(/.*)? u:object_r:fingerprint_sysfs:s0
# Debugfs
/sys/kernel/debug/system_stats u:object_r:debugfs:s0
# Goodix Fingerprint # Goodix Fingerprint
/data/misc/gf_data(/.*)? u:object_r:fingerprint_data_file:s0 /data/misc/gf_data(/.*)? u:object_r:fingerprint_data_file:s0
/data/misc/goodix(/.*)? u:object_r:fingerprint_data_file:s0 /data/misc/goodix(/.*)? u:object_r:fingerprint_data_file:s0

View file

@ -28,15 +28,19 @@ genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:
genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/white u:object_r:sysfs_graphics:s0 genfscon sysfs /devices/soc/800f000.qcom,spmi/spmi-0/spmi0-03/800f000.qcom,spmi:qcom,pm660l@3:qcom,leds@d000/leds/white u:object_r:sysfs_graphics:s0
# Power # Power
genfscon debugfs /rpm_stats u:object_r:debugfs_rpm:s0
genfscon debugfs /system_stats u:object_r:debugfs_rpm:s0 genfscon debugfs /system_stats u:object_r:debugfs_rpm:s0
genfscon sysfs /devices/soc/soc:qcom,gpubw u:object_r:sysfs_devfreq:s0 genfscon sysfs /devices/soc/soc:qcom,gpubw u:object_r:sysfs_devfreq:s0
genfscon sysfs /devices/soc/soc:qcom,cpubw u:object_r:sysfs_devfreq:s0 genfscon sysfs /devices/soc/soc:qcom,cpubw u:object_r:sysfs_devfreq:s0
genfscon sysfs /devices/soc/soc:qcom,mincpubw u:object_r:sysfs_devfreq:s0
genfscon sysfs /devices/soc/soc:qcom,memlat-cpu0 u:object_r:sysfs_devfreq:s0
genfscon sysfs /devices/soc/soc:qcom,memlat-cpu4 u:object_r:sysfs_devfreq:s0
# Touchscreen # Touchscreen
genfscon proc /nvt_wake_gesture u:object_r:proc_dt2w:s0 genfscon proc /nvt_wake_gesture u:object_r:proc_dt2w:s0
genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0 genfscon sysfs /touchpanel u:object_r:sysfs_touchpanel:s0
# XiaomiParts # DeviceSettings
genfscon sysfs /devices/virtual/graphics/fb0/measured_fps u:object_r:sysfs_fpsinfo:s0 genfscon sysfs /devices/virtual/graphics/fb0/measured_fps u:object_r:sysfs_fpsinfo:s0
genfscon sysfs /class/graphics/fb0/measured_fps u:object_r:sysfs_fpsinfo:s0 genfscon sysfs /class/graphics/fb0/measured_fps u:object_r:sysfs_fpsinfo:s0
genfscon sysfs /kernel/sound_control/headphone_gain u:object_r:sysfs_headphonegain:s0 genfscon sysfs /kernel/sound_control/headphone_gain u:object_r:sysfs_headphonegain:s0

View file

@ -42,6 +42,7 @@ allow hal_fingerprint_sdm660 vendor_fp_prop:file { getattr open read };
binder_call(hal_fingerprint_sdm660, hal_perf_default) binder_call(hal_fingerprint_sdm660, hal_perf_default)
r_dir_file(hal_fingerprint_sdm660, firmware_file) r_dir_file(hal_fingerprint_sdm660, firmware_file)
r_dir_file(hal_fingerprint_sdm660, sysfs_devfreq)
set_prop(hal_fingerprint_sdm660, hal_fingerprint_prop) set_prop(hal_fingerprint_sdm660, hal_fingerprint_prop)
dontaudit hal_fingerprint_default storage_file:dir search; dontaudit hal_fingerprint_default storage_file:dir search;

View file

@ -14,6 +14,13 @@ allow hal_power_default device_latency:chr_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;
allow hal_power_default sysfs:file { read open getattr };
allow hal_power_default proc:file { write };
r_dir_file(hal_power_default, sysfs_graphics)
# To dump
allow hal_power_default cgroup:file read;
set_prop(hal_power_default, vendor_power_prop) set_prop(hal_power_default, vendor_power_prop)