commit | d4f30d0d1544f8967ee5763c4a1680cb0553039f | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Sep 10 13:14:28 2014 -0700 |
committer | Jeffrey Vander Stoep <jeffv@google.com> | Wed Sep 10 21:32:24 2014 +0000 |
tree | d772cad94baeb75fff4c777295c33e33a0edbf80 | |
parent | e6db643fead20aca8f2d8f989c0684afa545ac1e [diff] |
Fix world-readable permissions due to sqlite race condition Existing code uses umask() to temporarily modify the file permissions for open(). A race condition can occur where a second thread reads in the temporary value, saves it, and then restores the file to the temporary value resulting in world-readable permissions. Backporting a known fix: http://www.sqlite.org/src/info/6c4c2b7dba Bug: 15288755 Change-Id: I89779f3a5ba0bec181d6614b29b1e26ea4f4f049