diff options
author | Nick Kralevich <nnk@google.com> | 2018-12-17 14:24:22 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2018-12-18 14:46:20 -0800 |
commit | 0c48b94e6114bbdbe56345ed6d542fa267d9d801 (patch) | |
tree | cbda7df7a80e215459a413d94445a723053a5ba3 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | 3e24ffd20862f651a059ee4b966d40d9c81334fa (diff) |
ParcelFileDescriptor: updates for O_CLOEXEC (API >= Q)
For apps which target Q or above, add the O_CLOEXEC flags to
ParcelFileDescriptors.
O_CLOEXEC is essential for ensuring that file descriptors do not leak
across an exec() boundary. Setting O_CLOEXEC ensures that file
descriptors can't linger around unnecessarily in an exec()ed process
which doesn't use them, making more efficient use of resources.
Additionally, O_CLOEXEC is important in ensuring that untrusted
exec()ed code cannot take advantage of leaked file descriptors.
Test: Android compiles and boots
Bug: 120983106
Change-Id: Idb3eb8f0e43968396a3b3a8bddc26a8d94c55bde
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions