summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nicoara <dnicoara@google.com>2017-04-28 15:25:43 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-28 15:25:43 +0000
commitcf0636cbc21bf95f7de6c525e8357eb8d9fffce0 (patch)
treedc0caed56e5b32d1add4b80fd3387b7ccbcc556e
parent6a77786840c4fe31ffe2cb564d84c0bd31628c88 (diff)
parent957cfc2a4e2244a83ddfaf6ba2da74aee24f0767 (diff)
downloaddevice_google_vrservices-cf0636cbc21bf95f7de6c525e8357eb8d9fffce0.tar.gz
device_google_vrservices-cf0636cbc21bf95f7de6c525e8357eb8d9fffce0.tar.bz2
device_google_vrservices-cf0636cbc21bf95f7de6c525e8357eb8d9fffce0.zip
Allow VrCore to access VR HWC and Virtual Touchpad services am: 3da860ba4foreo-dr1-dev
am: 957cfc2a4e Change-Id: I1e4c7504091c059226cc94eb7d83b79fc29c75ef
-rw-r--r--vrcore/sepolicy/vr_hwc.te3
-rw-r--r--vrcore/sepolicy/vrcore_app.te2
2 files changed, 5 insertions, 0 deletions
diff --git a/vrcore/sepolicy/vr_hwc.te b/vrcore/sepolicy/vr_hwc.te
new file mode 100644
index 0000000..2b5730c
--- /dev/null
+++ b/vrcore/sepolicy/vr_hwc.te
@@ -0,0 +1,3 @@
+# VrCore registers a callback with VR HWC. The callback is then used to post new
+# frames to VrCore.
+binder_call(vr_hwc, vrcore_app)
diff --git a/vrcore/sepolicy/vrcore_app.te b/vrcore/sepolicy/vrcore_app.te
index 4515b50..71cd9a4 100644
--- a/vrcore/sepolicy/vrcore_app.te
+++ b/vrcore/sepolicy/vrcore_app.te
@@ -27,6 +27,8 @@ allow vrcore_app app_api_service:service_manager find;
# VrCore-specific services.
allow vrcore_app vr_manager_service:service_manager find;
+allow vrcore_app vr_hwc_service:service_manager find;
+allow vrcore_app virtual_touchpad_service:service_manager find;
# gdbserver for ndk-gdb ptrace attaches to app process.
allow vrcore_app self:process ptrace;