diff options
| author | Georg Veichtlbauer <georg@vware.at> | 2021-10-07 09:35:09 +0200 |
|---|---|---|
| committer | Nolen Johnson <johnsonnolen@gmail.com> | 2021-12-14 20:20:28 +0100 |
| commit | a6270e2d7c40c02d634db39f1e4632e05fb303a0 (patch) | |
| tree | 6e950f824530b03b4099b5030e2bcc60aa2243c3 | |
| parent | 66abc37a18aca045f0020aec43de0233d9239fcd (diff) | |
pro1: init: Remove PowerHAL permission setup
* In contrast to HIDL, our AIDL power HAL is running as root, so
trying to access nodes with system:system will result in a
SELinux dac_override denial due to wrong permissions
Change-Id: I413de3a1097749b58e5a4cce09c55bddeaca71c1
| -rw-r--r-- | rootdir/etc/init.qcom.rc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 0104c4b..6ce9a37 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -119,11 +119,6 @@ on init write /sys/devices/soc/soc:qcom,mincpubw/devfreq/soc:qcom,mincpubw/governor cpufreq - # Setup permission for powerHAL - chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_trigger_count - chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hist_memory - chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/bw_hwmon/hyst_length - # Setup all the sub-system as related write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED write /sys/bus/msm_subsys/devices/subsys1/restart_level RELATED @@ -260,14 +255,6 @@ on post-fs-data write /sys/block/dm-0/queue/read_ahead_kb 2048 write /sys/block/dm-1/queue/read_ahead_kb 2048 - # Setup permission for powerHAL - chown system system /dev/stune/top-app/schedtune.boost - chown system system /dev/cpu_dma_latency - chown system system /sys/class/kgsl/kgsl-3d0/devfreq/min_freq - chown system system /sys/class/kgsl/kgsl-3d0/devfreq/max_freq - chown system system /sys/class/devfreq/soc:qcom,gpubw/min_freq - chown system system /sys/devices/soc/soc:qcom,cpubw/devfreq/soc:qcom,cpubw/min_freq - on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 |
