From 746c61f015b845ef27e8673c5a4e4ae5b0012713 Mon Sep 17 00:00:00 2001
From: Yin-Chia Yeh <yinchiayeh@google.com>
Date: Tue, 23 Jan 2018 16:02:34 -0800
Subject: [PATCH] Camera: sepolicy for external camera

Allow external camera HAL to monitor video device add/removal.

Bug: 64874137
Change-Id: I1a3116a220df63c0aabb3c9afd7450552e6cd417
---
 public/hal_camera.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/hal_camera.te b/public/hal_camera.te
index 4265b8a7c..8fe744214 100644
--- a/public/hal_camera.te
+++ b/public/hal_camera.te
@@ -5,6 +5,7 @@ binder_call(hal_camera_server, hal_camera_client)
 add_hwservice(hal_camera_server, hal_camera_hwservice)
 allow hal_camera_client hal_camera_hwservice:hwservice_manager find;
 
+allow hal_camera device:dir r_dir_perms;
 allow hal_camera video_device:dir r_dir_perms;
 allow hal_camera video_device:chr_file rw_file_perms;
 allow hal_camera camera_device:chr_file rw_file_perms;
-- 
GitLab