summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nicoara <dnicoara@google.com>2017-04-20 15:59:18 -0400
committerDaniel Nicoara <dnicoara@google.com>2017-04-20 15:59:18 -0400
commit3da860ba4f6c1bf228d8333ffe1a8bfbaf1db7f9 (patch)
treedc0caed56e5b32d1add4b80fd3387b7ccbcc556e
parent1da868148d75fb8deca717352fb243bcbf260e68 (diff)
downloaddevice_google_vrservices-security-oc-release.tar.gz
device_google_vrservices-security-oc-release.tar.bz2
device_google_vrservices-security-oc-release.zip
Allow VrCore to access VR HWC and Virtual Touchpad servicesandroid-vts-8.0_r9android-vts-8.0_r8android-vts-8.0_r7android-vts-8.0_r6android-vts-8.0_r2android-vts-8.0_r13android-vts-8.0_r12android-vts-8.0_r11android-vts-8.0_r10android-vts-8.0_r1android-security-8.0.0_r54android-security-8.0.0_r53android-security-8.0.0_r52android-cts-8.0_r9android-cts-8.0_r8android-cts-8.0_r7android-cts-8.0_r6android-cts-8.0_r5android-cts-8.0_r4android-cts-8.0_r3android-cts-8.0_r26android-cts-8.0_r25android-cts-8.0_r24android-cts-8.0_r23android-cts-8.0_r22android-cts-8.0_r21android-cts-8.0_r20android-cts-8.0_r2android-cts-8.0_r19android-cts-8.0_r18android-cts-8.0_r17android-cts-8.0_r16android-cts-8.0_r15android-cts-8.0_r14android-cts-8.0_r13android-cts-8.0_r12android-cts-8.0_r11android-cts-8.0_r10android-cts-8.0_r1android-cts-7.1_r18android-8.0.0_r9android-8.0.0_r7android-8.0.0_r51android-8.0.0_r50android-8.0.0_r49android-8.0.0_r48android-8.0.0_r47android-8.0.0_r46android-8.0.0_r45android-8.0.0_r44android-8.0.0_r43android-8.0.0_r42android-8.0.0_r41android-8.0.0_r40android-8.0.0_r4android-8.0.0_r39android-8.0.0_r38android-8.0.0_r37android-8.0.0_r36android-8.0.0_r35android-8.0.0_r32android-8.0.0_r31android-8.0.0_r30android-8.0.0_r3android-8.0.0_r29android-8.0.0_r28android-8.0.0_r2android-8.0.0_r17android-8.0.0_r16android-8.0.0_r15android-8.0.0_r13android-8.0.0_r12android-8.0.0_r11android-8.0.0_r10android-8.0.0_r1security-oc-releaseoreo-vts-releaseoreo-security-releaseoreo-releaseoreo-r6-releaseoreo-r5-releaseoreo-r4-releaseoreo-r3-releaseoreo-r2-releaseoreo-devoreo-cts-release
Part of the migration of VR Window Manager to VrCore, need to add necessary permissions to VrCore to interact with dependent services. Bug: 37542947 Test: Ran on device and verified no permission errors Change-Id: Id6c6f6d05fc433d9b2e86114c6e9f78834bf43ec
-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;