summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2016-08-30 15:36:19 +0100
committerNarayan Kamath <narayan@google.com>2016-08-30 19:20:45 +0100
commit3764a260f0c90dcb323caeda14baf903cc108759 (patch)
tree4d1d93e3cff14dcafcef88f65b7b05de2eb6c996 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent0a272fcba732e560ac4b50ca0d017a82e92f1ea4 (diff)
Add a whitelist of sockets on fork.
Maintain a whitelist of AF_UNIX sockets that are permitted to exist at the time of forking. If an open socket does not belong to the whitelist (or is not AF_UNIX), the process will abort. If an open socket is whitelisted, it will be redirected to /dev/null after a sucessful fork. This allows us to unify our handling of the special zygote sockets (/dev/socket/zygote[_secondary]) with the existing whitelist of non socket file descriptors. This change also removes non-fatal ALOGW messages since they have the side effect of reopening the logging socket. bug: 30963384 Change-Id: Ie04dac62d0e0f29354df9ac15af217ad652ffbbe
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions