Move Camera HAL policy to hal_camera

This moves cameraserver domain policy to do with Camera HAL running
inside that domain into hal_camera. cameraserver is now associated
with hal_camera.

Test: Taking photod and recording videos using Google Camera works
Bug: 34170079
Change-Id: I3031f1cdeebe0773f765adffa8c0bd617ab2cebd
This commit is contained in:
Alex Klyubin 2017-02-16 16:36:22 -08:00 committed by Artem Borisov
parent 3e14c2304b
commit 7f03e75fe1
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +0,0 @@
unix_socket_send(cameraserver, camera, camera);
unix_socket_send(cameraserver, mpdecision, mpdecision);
allow cameraserver sysfs:file r_file_perms;
# for libmmjpeg
allow cameraserver system_file:file execmod;

7
sepolicy/hal_camera.te Normal file
View File

@ -0,0 +1,7 @@
unix_socket_send(hal_camera, camera, camera);
unix_socket_send(hal_camera, mpdecision, mpdecision);
allow hal_camera sysfs:file r_file_perms;
# for libmmjpeg
allow hal_camera system_file:file execmod;