Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 3495002: [update_engine] Fix file creation mask to be 0600 (Closed)

Created:
10 years, 3 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
adlr
CC:
chromium-os-reviews_chromium.org, petkov, adlr
Visibility:
Public.

Description

[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 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=4dc2ada

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -12 lines) Patch
M extent_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M file_writer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M main.cc View 2 chunks +8 lines, -0 lines 1 comment Download
M split_file_writer.h View 2 chunks +5 lines, -5 lines 0 comments Download
M split_file_writer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M utils.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Chris Masone
10 years, 3 months ago (2010-09-22 22:00:32 UTC) #1
Chris Masone
On 2010/09/22 22:00:32, Chris Masone wrote: > ping?
10 years, 3 months ago (2010-09-23 18:29:18 UTC) #2
adlr
10 years, 3 months ago (2010-09-23 19:16:06 UTC) #3
LGTM

http://codereview.chromium.org/3495002/diff/1/4
File main.cc (right):

http://codereview.chromium.org/3495002/diff/1/4#newcode16
main.cc:16: #include <sys/types.h>
the order of includes is:

corresponding .h, if applicable
c headers in pure alpha order
c++ header in pure alpha order
library headers in pure alpha order
local update_engine headers in pure alpha order

Powered by Google App Engine
This is Rietveld 408576698