OLD | NEW |
(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 |
OLD | NEW |