summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiwen 'Steve' Cai <jwcai@google.com>2019-06-19 16:42:35 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-06-19 16:42:35 -0700
commit4138919cb3e2659f12fddd3bcfc9f04a59447905 (patch)
tree7e5d6490153e12fcb07779443f3345a2ebda99c8
parent016b77614579ae554ec9ee4b85658927919e4b92 (diff)
parentf5d468e8b003da85b6ca36c795201902f50b9ecb (diff)
downloaddevice_google_vrservices-4138919cb3e2659f12fddd3bcfc9f04a59447905.tar.gz
device_google_vrservices-4138919cb3e2659f12fddd3bcfc9f04a59447905.tar.bz2
device_google_vrservices-4138919cb3e2659f12fddd3bcfc9f04a59447905.zip
Merge branch 'oc-dr1-daydream-dev' into goog/qt-dev am: d1b4c07768
am: f5d468e8b0 Change-Id: I75056ac4fda007688dc6c395a4ffca9564990f7b
-rw-r--r--vrcore/sepolicy_mtc/vrcore_app.te16
1 files changed, 16 insertions, 0 deletions
diff --git a/vrcore/sepolicy_mtc/vrcore_app.te b/vrcore/sepolicy_mtc/vrcore_app.te
new file mode 100644
index 0000000..3dda5f2
--- /dev/null
+++ b/vrcore/sepolicy_mtc/vrcore_app.te
@@ -0,0 +1,16 @@
+###
+### MTC specific VrCore permissions
+###
+
+allow vrcore_app persist_file:dir search;
+
+# allow vrcore to access dsp
+allow vrcore_app qdsp_device:chr_file r_file_perms;
+r_dir_file(vrcore_app, adsprpcd_file)
+
+# allow vrcore to access sensor service
+allow vrcore_app fwk_sensor_hwservice:hwservice_manager find;
+allow vrcore_app sensorservice_service:service_manager find;
+
+# allow vrcore to access /persist/tango/calibration.xml
+r_dir_file(vrcore_app, tango_data_file); \ No newline at end of file