diff options
author | Abhinav Kannan <kannana@qti.qualcomm.com> | 2015-10-02 17:30:29 -0600 |
---|---|---|
committer | Nathan Harold <nharold@google.com> | 2015-10-06 18:52:55 +0000 |
commit | 1a0c1bae91024f0bcd9cad9ced88939a6952bc65 (patch) | |
tree | 7b1182a3e10f03c70c59bf903ad47c4db90776f7 | |
parent | b4864741f939f61dfd3cc809706af4d864c598c8 (diff) | |
download | angler-1a0c1bae91024f0bcd9cad9ced88939a6952bc65.tar.gz |
netmgrd: allow netmgrd to acquire wakelock
Add policies to allow netmgrd to acquire and
release wakelocks.
Fix the following denials
avc: denied { read write } for comm="netmgrd" name="wake_lock"
dev="sysfs" ino=77 scontext=u:r:netmgrd:s0 tcontext=u:
object_r:sysfs_wake_lock:s0 tclass=file permissive=0
avc: denied { block_suspend } for pid=1073 comm="netmgrd"
capability=36 scontext=u:r:netmgrd:s0 tcontext==u:
r:netmgrd:s0 tclass=capability2 permissive=0
Bug: 24546055
Change-Id: I060c4f566bf1c4ec9d2d652f441bb4225798f2dd
-rwxr-xr-x | sepolicy/netmgrd.te | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sepolicy/netmgrd.te b/sepolicy/netmgrd.te index 766db17..18a6f79 100755 --- a/sepolicy/netmgrd.te +++ b/sepolicy/netmgrd.te @@ -37,3 +37,6 @@ userdebug_or_eng(` # execute toybox/toolbox allow netmgrd toolbox_exec:file rx_file_perms; + +#Allow netmgrd to use wakelock +wakelock_use(netmgrd) |