summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/tests/malloc_hooks_tests.cpp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-06-16 10:19:16 -0700
committerGreg Hackmann <ghackmann@google.com>2013-06-24 16:15:52 -0700
commitfb9b7b436f3ef94385f1b0c55ab81f246f0d96b8 (patch)
treee60f40cc337809f9764dd982d558037c0181f259 /libc/malloc_hooks/tests/malloc_hooks_tests.cpp
parent5f05348c18286a2cea46eae8acf94ed5b7932fac (diff)
bionic: prevent root processes from calling __system_property_add
If a root process other than init calls __system_property_add, which it should never do, it will break the design assumption that there is only one mutator. Pass O_EXCL to open() in map_prop_region_rw to ensure that only one process ever has the property pages open for write. Change-Id: I6b7c118e5e2fd2b92a2b168b8454fe9707325462
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions