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>
This commit is contained in:
committed by
Narayan Kamath
parent
fc3c6a0ef3
commit
49cbafad9b
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user