diff options
author | Nick Kralevich <nnk@google.com> | 2014-06-16 15:32:49 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2014-06-16 15:40:40 -0700 |
commit | 30a86ebc7a0f5a2e0fc698f432ee626cd96525b8 (patch) | |
tree | 1a6b1e66329c38a4a4986ea45d131cf2c59243e2 /include/system/thread_defs.h | |
parent | e5fdfcdcb462195b1a91d5408c0ac738a0a55888 (diff) | |
download | system_core-30a86ebc7a0f5a2e0fc698f432ee626cd96525b8.zip system_core-30a86ebc7a0f5a2e0fc698f432ee626cd96525b8.tar.gz system_core-30a86ebc7a0f5a2e0fc698f432ee626cd96525b8.tar.bz2 |
fs_mkdirs: use O_NOFOLLOW and O_CLOEXEC
Don't follow symlinks. Suggestion from Jann Horn.
Also, add O_CLOEXEC. This prevents file descriptor leakage should
this code ever run in a multithreaded environment.
I'm not sure if either of these changes actually address any
security concerns, but it's harmless, so go ahead and add it.
Bug: 15675141
Change-Id: I7ba4e9d10439b7150f59759b54e3ad8ccba411e3
Diffstat (limited to 'include/system/thread_defs.h')
0 files changed, 0 insertions, 0 deletions