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 <gotenksIN@aosip.dev>
Signed-off-by: basamaryan <basam.aryan@gmail.com>
This commit is contained in:
Omkar Chandorkar 2021-05-21 09:29:51 +00:00 committed by basamaryan
parent bbe55d54c6
commit 43c5c8d58a
No known key found for this signature in database
GPG Key ID: 707BA6C82329E8F9

2
sepolicy/vendor/hal_camera_default.te vendored Normal file
View File

@ -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;