From 635f6ca03c1f8e03a377ec9335d4fb317db62c74 Mon Sep 17 00:00:00 2001 From: Pu Chen Date: Tue, 14 May 2019 13:39:35 -0700 Subject: [PATCH] Camera: Allow camera to access GPU device Add rule to access GPU device. Change-Id: I7fb469c478184075f7bf2c50e8a256d6c392a9dc --- generic/vendor/common/hal_camera.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/generic/vendor/common/hal_camera.te b/generic/vendor/common/hal_camera.te index 93e97bfd..88921a60 100644 --- a/generic/vendor/common/hal_camera.te +++ b/generic/vendor/common/hal_camera.te @@ -62,3 +62,6 @@ r_dir_file(hal_camera_default, sysfs_graphics) r_dir_file(hal_camera, adsprpcd_file); #allow camera to access adsprpc_prop get_prop(hal_camera, vendor_adsprpc_prop) + +# This is needed to access GPU +allow hal_camera_default gpu_device:chr_file rw_file_perms;