sm8150-common: sepolicy: allow camera to read /dev/adsprpc-smd-secure
* fixes portrait mode in oneplus camera `05-20 17:02:33.677 878 1598 E OPRTB : doLoadLibrary():1542 doLoadLibrary RTB select: /vendor/lib64/libarcsoft_dualcam_bokeh_api.so, bokeh_select:0 05-20 17:02:33.678 878 1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2459: Error -1: apps_dev_init: app does not have access to fastrpc device of domain 3 (Permission denied) 05-20 17:02:33.678 878 1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2588: Error 0xffffffff: apps_dev_init failed for domain 3, errno Permission denied 05-20 17:02:33.672 878 878 W provider@2.4-se: type=1400 audit(0.0:55): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=28876 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0` Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
This commit is contained in:
parent
c0df650e28
commit
e451685d49
|
@ -16,3 +16,6 @@ allow hal_camera_default sysfs_dtb_model:file r_file_perms;
|
|||
|
||||
# Properties
|
||||
set_prop(hal_camera_default, vendor_camera_prop)
|
||||
|
||||
# Allow camera to read over /dev/adsprpc-smd-secure
|
||||
allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;
|
||||
|
|
Loading…
Reference in New Issue