Commit 34637e5
Christopher Tate
Make sure to check write perms after rewriting destination table
The write-permission check must occur after any destination-table
rewriting, otherwise any application would be able to write to
any global setting, by supplying a fraudulent "system" namespace
in the uri, but with a key name that will be redirected to global.
Bug 7289965
Change-Id: I122098a64e40d14e00d3cb6608c50aeb74faf7ce1 parent dce8b94 commit 34637e5
File tree
1 file changed
+3
-1
lines changed- packages/SettingsProvider/src/com/android/providers/settings
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
849 | 849 | | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
| |||
869 | 868 | | |
870 | 869 | | |
871 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
872 | 874 | | |
873 | 875 | | |
874 | 876 | | |
| |||
0 commit comments