diff options
| author | Daniel Leung <daniel.leung@intel.com> | 2013-12-20 10:37:35 -0800 |
|---|---|---|
| committer | Narayan Kamath <narayan@google.com> | 2014-04-24 19:12:38 +0100 |
| commit | 49cbafad9beb6041aaee773f75473fdb5022888e (patch) | |
| tree | f32da1c34fdde5fc0cf7d690d69caee7085fa397 /core/java | |
| parent | fc3c6a0ef36cc4969aa7d8e160cc55f30c653325 (diff) | |
Zygote: enable CAP_BLOCK_SUSPEND capability for system server
Starting from kernel 3.6, it requires processes to have the capability
CAP_BLOCK_SUSPEND to set/unset wake locks. Adds CAP_BLOCK_SUSPEND
to the list of capabilities for system server, so that PowerManager
can set wake locks.
Change-Id: I3246e6f6e6cb8f0bedb1c0417ed07085ee1f3aaa
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/com/android/internal/os/ZygoteInit.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java index 495cc5fd8b4b..3f5ad86c4dbf 100644 --- a/core/java/com/android/internal/os/ZygoteInit.java +++ b/core/java/com/android/internal/os/ZygoteInit.java @@ -499,6 +499,7 @@ public class ZygoteInit { private static boolean startSystemServer() throws MethodAndArgsCaller, RuntimeException { long capabilities = posixCapabilitiesAsBits( + OsConstants.CAP_BLOCK_SUSPEND, OsConstants.CAP_KILL, OsConstants.CAP_NET_ADMIN, OsConstants.CAP_NET_BIND_SERVICE, |
