From 5895ffe1f72ea660652ff3d4b3e84dde598fce22 Mon Sep 17 00:00:00 2001 From: Sami Tolvanen Date: Tue, 31 Mar 2015 09:17:43 +0100 Subject: [PATCH] Fix block_suspend denial for slideshow Add wakelock_use to slideshow.te to fix the following denial: avc: denied { block_suspend } for pid=137 comm="slideshow" capability=36 scontext=u:r:slideshow:s0 tcontext=u:r:slideshow:s0 tclass=capability2 permissive=0 Change-Id: If84f167cd235e8196eadf3fb85cc725a5ea464e6 --- slideshow.te | 1 + 1 file changed, 1 insertion(+) diff --git a/slideshow.te b/slideshow.te index 1a22fb55c..2b82b3e01 100644 --- a/slideshow.te +++ b/slideshow.te @@ -3,6 +3,7 @@ type slideshow, domain; write_klog(slideshow) +wakelock_use(slideshow) allow slideshow device:dir r_dir_perms; allow slideshow self:capability { mknod sys_tty_config }; allow slideshow graphics_device:dir r_dir_perms;