commit | 4dc2ada660d3f7cd50d624b6bf102d806cf8997f | [log] [tgz] |
---|---|---|
author | Chris Masone <cmasone@chromium.org> | Thu Sep 23 12:43:03 2010 -0700 |
committer | Chris Masone <cmasone@chromium.org> | Thu Sep 23 12:43:03 2010 -0700 |
tree | c850ff14983cf3f3485de24883a918305cbadcfb | |
parent | cd1666f5c1be2745197046a55b2fdde7b6045604 [diff] |
[update_engine] Fix file creation mask to be 0600 In addition to changing the write() call in utils.cc, I also set the umask of the process to be 177 -- meaning that files will be AT MOST -rw------- I do this _after_ we initialize logging, so that we don't create log files with unnecessarily restrictive permissions. BUG=chromium-os:6581 TEST=Unit tests, Change-Id: Id6b805a1524af391755bc1df69ec0f6c382154c2 [update_engine] Ensure that created files have restrictive permissions Change-Id: If93e043465083f7c48619d0e7163dd73f8c46090 Review URL: http://codereview.chromium.org/3495002