commit | cccf840917bf0de8b6e61c4ad077add6e2a4225a | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Wed Sep 10 13:14:28 2014 -0700 |
committer | Jon Larimer <jlarimer@google.com> | Tue Oct 20 14:32:00 2015 -0400 |
tree | aec5b1f8379b14bc4ec524e3444db79ae1fedaf6 | |
parent | 12dfd6176dcbd9206dc05aaceccfe2efd6021739 [diff] |
Fix world-readable permissions due to sqlite race condition - DO NOT MERGE 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