aboutsummaryrefslogtreecommitdiff
path: root/rootdir/etc/init.qcom.rc
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2022-03-20 19:17:05 -0300
committersinanmohd <pcmsinan@gmail.com>2023-01-05 21:30:23 +0530
commit2c11d61122273443086a02b0b0fda9638e677bfc (patch)
tree00982ee09ab793899e874d1eabef13af01d9d2db /rootdir/etc/init.qcom.rc
parentf84b614229fb517e286de6e72c869a7ef24d8d64 (diff)
veux: sepolicy: Make fastrpc_shell_3 publicly available
* Used by GCAM for DSP-accelerated HDR processing * Arguably we should label /vendor/dsp/cdsp/fastrpc_shell_3 to same_process_hal_file like Pixels, but the partition is prebuilt thus we're unable to relabel it. * Copy the file to writable tmpfs, setup attributes and bind mount back to workaround the limitation. [ghostrider-reborn]: Allow adsp/cdsprpcd and neuralnetworks HAL to access fastrpc_shell_3 [kras edit: 1. rename some contexts as per qva/kona 2. extend to allow camera HAL and VPP service to access it as well] Co-authored-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Diffstat (limited to 'rootdir/etc/init.qcom.rc')
-rw-r--r--rootdir/etc/init.qcom.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 19736f4..f32f879 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -65,6 +65,11 @@ on early-init
# Load WIGIG platform driver
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy
+ mkdir /mnt/vendor/dsp 0770 root root
+ copy /vendor/dsp/cdsp/fastrpc_shell_3 /mnt/vendor/dsp/fastrpc_shell_3
+ chmod 0644 /mnt/vendor/dsp/fastrpc_shell_3
+ mount none /mnt/vendor/dsp/fastrpc_shell_3 /vendor/dsp/cdsp/fastrpc_shell_3 bind
+
on init
# Support legacy paths