commit | fc761f8cc0dca78ac4ace20f701554704a6c14d5 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Sun Jun 16 10:19:16 2013 -0700 |
committer | Greg Hackmann <ghackmann@google.com> | Tue Jun 25 13:34:36 2013 -0700 |
tree | c6c1704d6ff1db461f6e05eca5f008d4ca876fb9 | |
parent | be30c7a78a1cf4adc8ec9bbdf17e85186fdb05b2 [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: I8233bfe0beaa40a5003ad53b98c661536b15f6b7