dumpstate: allow gpu_device access
dumpstate calls screencap to take a screenshot. screencap
requires the ability to access the gpu device. Allow it.
Bug: 15514427
Change-Id: Iad8451b6108786653146de471f6be2d26b0e3297
diff --git a/dumpstate.te b/dumpstate.te
index 4b2127a..4eb7238 100644
--- a/dumpstate.te
+++ b/dumpstate.te
@@ -82,6 +82,9 @@
# For art.
allow dumpstate dalvikcache_data_file:file execute;
+# Dumpstate calls screencap, which grabs a screenshot. Needs gpu access
+allow dumpstate gpu_device:chr_file rw_file_perms;
+
# logd access
read_logd(dumpstate)
control_logd(dumpstate)