OSDN Git Service

Make ZygoteInit not require CAP_BLOCK_SUSPEND
authorLuis Hector Chavez <lhchavez@google.com>
Tue, 6 Oct 2015 21:01:45 +0000 (14:01 -0700)
committerVladislav Kaznacheev <kaznacheev@google.com>
Thu, 15 Oct 2015 17:03:59 +0000 (17:03 +0000)
commit5dd239a1f8e305013ee782e45e7e789ec531e9d1
tree622e6922126b5022c3eccaeb19cf68498ba746dd
parent32ab05c846366c19d148562c9feb5366d1018f37
Make ZygoteInit not require CAP_BLOCK_SUSPEND

We are dropping CAP_BLOCK_SUSPEND since that prevents correct suspension in
Chrome OS.  This change makes it so that it only requests that capability if it
is not running inside a container.

TEST=Android boots correctly
BUG:24952794

(cherry picked from commit 5e38447a9bf81bb7d58d33c71498495e1e0f575f)
(cherry picked from commit dc3943951ee475ef09cc7a4825368f9b707e1344)

Change-Id: If39357f22955442d5532d1408ce74360384521bb
core/java/com/android/internal/os/ZygoteInit.java