This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Commit d4f30d0
committed
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: I89779f3a5ba0bec181d6614b29b1e26ea4f4f0491 parent e6db643 commit d4f30d0
1 file changed
+13
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25426 | 25426 | | |
25427 | 25427 | | |
25428 | 25428 | | |
25429 | | - | |
25430 | 25429 | | |
25431 | | - | |
25432 | | - | |
25433 | | - | |
25434 | 25430 | | |
25435 | 25431 | | |
25436 | 25432 | | |
| |||
25455 | 25451 | | |
25456 | 25452 | | |
25457 | 25453 | | |
25458 | | - | |
25459 | | - | |
25460 | | - | |
25461 | 25454 | | |
25462 | 25455 | | |
25463 | 25456 | | |
| |||
25561 | 25554 | | |
25562 | 25555 | | |
25563 | 25556 | | |
25564 | | - | |
25565 | | - | |
25566 | | - | |
25567 | | - | |
25568 | | - | |
25569 | | - | |
25570 | | - | |
25571 | | - | |
25572 | | - | |
25573 | | - | |
25574 | | - | |
25575 | | - | |
| 25557 | + | |
| 25558 | + | |
| 25559 | + | |
| 25560 | + | |
| 25561 | + | |
| 25562 | + | |
| 25563 | + | |
| 25564 | + | |
| 25565 | + | |
| 25566 | + | |
| 25567 | + | |
| 25568 | + | |
25576 | 25569 | | |
25577 | | - | |
| 25570 | + | |
25578 | 25571 | | |
25579 | 25572 | | |
25580 | 25573 | | |
| |||
0 commit comments