From 644097e4e58f7344fd3be566807d50b17024a75d Mon Sep 17 00:00:00 2001 From: Tim Kilbourn Date: Tue, 24 Mar 2015 15:31:47 -0700 Subject: [PATCH] Update selinux for inputflinger Allow CAP_BLOCK_SUSPEND Allow reading /dev/input/* (cherrypicked from commit 2133c2a167217574b3105c17614f1ff00b952e3e) Change-Id: I869a4921e024702300aa9ecba9cdf84ae2b6edac --- inputflinger.te | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inputflinger.te b/inputflinger.te index 0a8dd9023..11a60a65e 100644 --- a/inputflinger.te +++ b/inputflinger.te @@ -8,4 +8,8 @@ binder_service(inputflinger) binder_call(inputflinger, system_server) +wakelock_use(inputflinger) + allow inputflinger inputflinger_service:service_manager { add find }; +allow inputflinger input_device:dir r_dir_perms; +allow inputflinger input_device:chr_file rw_file_perms;