From 43c5c8d58a37c43b396501065c2f207ab44f8011 Mon Sep 17 00:00:00 2001 From: Omkar Chandorkar Date: Fri, 21 May 2021 09:29:51 +0000 Subject: [PATCH] miuicamera: Allow camera to read /dev/adsprpc-smd-secure 04-23 18:21:56.672 934 934 I HwBinder:934_4: type=1400 audit(0.0:460): avc: denied { ioctl } for path="/dev/adsprpc-smd-secure" dev="tmpfs" ino=18457 ioctlcmd=0x5201 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=1 Change-Id: Icb1e954d019dcbe931c53f5398b400f5f07ec768 Signed-off-by: Omkar Chandorkar Signed-off-by: basamaryan --- sepolicy/vendor/hal_camera_default.te | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 sepolicy/vendor/hal_camera_default.te diff --git a/sepolicy/vendor/hal_camera_default.te b/sepolicy/vendor/hal_camera_default.te new file mode 100644 index 0000000..2047933 --- /dev/null +++ b/sepolicy/vendor/hal_camera_default.te @@ -0,0 +1,2 @@ +# Allow camera to read over /dev/adsprpc-smd-secure +allow hal_camera_default vendor_xdsp_device:chr_file r_file_perms;