From b2ed044f8d6ed31acd814f5346148e762f3a5751 Mon Sep 17 00:00:00 2001 From: Nick Kralevich <nnk@google.com> Date: Mon, 9 Jun 2014 12:51:42 -0700 Subject: [PATCH] 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 --- dumpstate.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dumpstate.te b/dumpstate.te index 4b2127a2a..4eb72382a 100644 --- a/dumpstate.te +++ b/dumpstate.te @@ -82,6 +82,9 @@ allow dumpstate self:process execmem; # 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) -- GitLab