dumpstate is a client of graphics allocator
This fixes
avc: denied { call } for comm="screencap" scontext=u:r:dumpstate:s0
tcontext=u:r:hal_graphics_allocator_default:s0 tclass=binder
permissive=0
Bug: 37360953
Test: adb shell dumpstate -p -o <path>
Change-Id: Ia9387559e3ec1ba51b614bb9d24294fbbbd51b1a
diff --git a/public/dumpstate.te b/public/dumpstate.te
index 3322e14..587156f 100644
--- a/public/dumpstate.te
+++ b/public/dumpstate.te
@@ -97,6 +97,7 @@
# Vibrate the device after we are done collecting the bugreport
# For binderized mode:
hal_client_domain(dumpstate, hal_dumpstate)
+hal_client_domain(dumpstate, hal_graphics_allocator)
binder_call(dumpstate, hal_vibrator)
hal_client_domain(dumpstate, hal_vibrator)
# For passthrough mode: