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

Side by Side Diff: platform.cc

Issue 3475009: Adds the necessary changes to tpm_init to allow triggered initialization. (Closed) Base URL: http://git.chromium.org/git/tpm_init.git
Patch Set: Address feedback. Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « platform.h ('k') | tpm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Contains the implementation of class Platform
6
7 #include "platform.h"
8
9 #include <errno.h>
10 #include <sys/mount.h>
11 #include <sys/stat.h>
12 #include <sys/types.h>
13
14 namespace tpm_init {
15
16 const int kDefaultUmask = S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH
17 | S_IXOTH;
18
19 Platform::Platform()
20 : umask_(kDefaultUmask) {
21 }
22
23 Platform::~Platform() {
24 }
25
26 int Platform::SetMask(int new_mask) {
27 return umask(new_mask);
28 }
29
30 } // namespace tpm_init
OLDNEW
« no previous file with comments | « platform.h ('k') | tpm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698