summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Vander Stoep <jeffv@google.com>2016-01-15 17:47:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-01-15 17:47:56 +0000
commit9d9fee956a9c4c7be4f69f7a472d3fc0e759c2dd (patch)
treea9820e3fa6047184ab8e9f95f7d0c67de40f2c72
parentee780e84e949de92267d510f7e03aa493d90a3b4 (diff)
parent07c9e60de02caf69db7bfcebb75308803ca0f702 (diff)
downloadflo-nougat-mr1-wear-release.tar.gz
-rw-r--r--sepolicy/camera.te4
-rw-r--r--sepolicy/file_contexts9
2 files changed, 6 insertions, 7 deletions
diff --git a/sepolicy/camera.te b/sepolicy/camera.te
index aa20255..2433061 100644
--- a/sepolicy/camera.te
+++ b/sepolicy/camera.te
@@ -6,8 +6,8 @@ type camera_exec, exec_type, file_type;
init_daemon_domain(camera)
# Interact with other media devices
-allow camera camera_device:dir search;
-allow camera { gpu_device video_device camera_device }:chr_file rw_file_perms;
+allow camera video_device:dir search;
+allow camera { gpu_device video_device }:chr_file rw_file_perms;
allow camera { surfaceflinger mediaserver }:fd use;
# Create front and back camera sockets (/data/cam_socket[12])
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index b453823..b0d885d 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -72,12 +72,11 @@
/dev/ttyUSB0 u:object_r:radio_device:s0
# Jpeg Engine support
-/dev/gemini.* u:object_r:camera_device:s0
+/dev/gemini.* u:object_r:video_device:s0
# MSM camera related
-/dev/v4l-subdev.* u:object_r:camera_device:s0
-/dev/video([0-9])+ u:object_r:camera_device:s0
-/dev/msm_camera(/.*)? u:object_r:camera_device:s0
-/dev/media([0-9])+ u:object_r:camera_device:s0
+/dev/v4l-subdev.* u:object_r:video_device:s0
+/dev/msm_camera(/.*)? u:object_r:video_device:s0
+/dev/media([0-9])+ u:object_r:video_device:s0
# Qualcomm MSM Audio devices
/dev/msm_acdb u:object_r:audio_device:s0