diff options
author | 2014-02-05 17:03:16 -0800 | |
---|---|---|
committer | 2014-02-06 14:35:22 -0800 | |
commit | 870901d89a2720589c452411a9c1929be78521be (patch) | |
tree | b601dd15defc448d09c918017973fe4b85fa5c80 /compiler/driver/compiler_driver.cc | |
parent | 8e3cde5d3f842928bb965a72d5d54785f0140556 (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: use proper type (jsize) for iteration variable; whitespace.
Round 3: indentation.
Bug: 12114500
Change-Id: I31d25831b477b076d980c531d57773f9c8c83261
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
0 files changed, 0 insertions, 0 deletions