summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-08-29 02:48:16 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-29 02:48:16 -0700
commit01fe7381c47e6b6eec406391d6e3bdc83eb9e401 (patch)
tree28a4b492bce39aa276ab04661465d904b752ffd7
parent4cfdf58a6829bb2846743c4df2c3b8c147c8abb3 (diff)
parentae1afdddad2769843843c7ef25bb295168e1834c (diff)
downloadandroid_device_qcom_sepolicy-01fe7381c47e6b6eec406391d6e3bdc83eb9e401.tar.gz
android_device_qcom_sepolicy-01fe7381c47e6b6eec406391d6e3bdc83eb9e401.tar.bz2
android_device_qcom_sepolicy-01fe7381c47e6b6eec406391d6e3bdc83eb9e401.zip
Merge "sepolicy: Adding cameraserver permissions for camera."
-rw-r--r--common/cameraserver.te9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/cameraserver.te b/common/cameraserver.te
index b45b77d8..8a888601 100644
--- a/common/cameraserver.te
+++ b/common/cameraserver.te
@@ -43,3 +43,12 @@ allow cameraserver system_server:unix_stream_socket { read write };
#Allow read access to soc/msm-cam/video4linux/video0/name sysfs
allow cameraserver sysfs:file r_file_perms;
+
+allow cameraserver persist_file:dir r_dir_perms;
+allow cameraserver camera_prop:property_service set;
+unix_socket_connect(cameraserver,property,init);
+allow cameraserver self:socket create_socket_perms;
+allow cameraserver sensors_persist_file:dir r_dir_perms;
+allow cameraserver sensors_persist_file:file r_file_perms;
+allow cameraserver graphics_device:dir r_dir_perms;
+allow cameraserver sensorservice_service:service_manager find;