diff options
| author | Dave Platt <dplatt@google.com> | 2014-02-05 17:03:52 -0800 |
|---|---|---|
| committer | LorDClockaN <davor@losinj.com> | 2014-02-21 18:24:46 +0100 |
| commit | a7607232a38b7650d67be3556bddbf338771df8a (patch) | |
| tree | 939475e4e6babb94dad528bb32b54a052af2b090 /vm/compiler/codegen/arm/CodegenDriver.cpp | |
| parent | ee44ed6acda1660143db76396fd6d4b9dd6d5d39 (diff) | |
Finish fixing Zygote descriptor leakage problem
In order to prevent Zygote descriptors from leaking into the child
environment, they should be closed by the forked-off child process
before the child switches to the application UID. These changes close
the descriptors via dup2(), substituting a descriptor open to
/dev/null in their place; this allows the Zygote Java code to close
the FileDescriptor objects cleanly.
This is a multi-project change: dalvik, art, libcore, frameworks/base,
and external/sepolicy are affected. The CLs need to be approved
together, lest the build break or the software fail to boot.
Round 2: whitespace
Bug: 12114500
Change-Id: I989c83291d0c42d4cad63f24a3e98a93e231c9d3
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.cpp')
0 files changed, 0 insertions, 0 deletions
