Ryo Hashimoto | e087ff6 | 2013-11-29 17:30:23 +0900 | [diff] [blame] | 1 | // Copyright (c) 2013 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 | |
Ben Chan | 7852b21 | 2018-10-04 01:07:19 -0700 | [diff] [blame] | 5 | #ifndef SYSTEM_API_CONSTANTS_CRYPTOHOME_H_ |
| 6 | #define SYSTEM_API_CONSTANTS_CRYPTOHOME_H_ |
Ryo Hashimoto | e087ff6 | 2013-11-29 17:30:23 +0900 | [diff] [blame] | 7 | |
Avi Drissman | a033103 | 2015-12-26 15:42:35 -0500 | [diff] [blame] | 8 | #include <stdint.h> |
| 9 | |
Ryo Hashimoto | e087ff6 | 2013-11-29 17:30:23 +0900 | [diff] [blame] | 10 | namespace cryptohome { |
| 11 | |
| 12 | // Cleanup is trigerred if the amount of free disk space goes below this value. |
Avi Drissman | a033103 | 2015-12-26 15:42:35 -0500 | [diff] [blame] | 13 | const int64_t kMinFreeSpaceInBytes = 512 * 1LL << 20; |
Igor | 8f60c9c | 2019-03-01 16:55:34 +0100 | [diff] [blame] | 14 | // Flag file in temporary storage. The presence of the file means the device |
| 15 | // is locked to be able to access only a single user data, until reboot. |
| 16 | constexpr char kLockedToSingleUserFile[] = |
| 17 | "/run/cryptohome/locked_to_single_user"; |
Jorge Lucangeli Obes | 57590e2 | 2020-04-09 17:54:22 -0400 | [diff] [blame] | 18 | // Path to the mount namespace to run user sessions in. |
| 19 | constexpr char kUserSessionMountNamespacePath[] = "/run/namespaces/mnt_chrome"; |
Ryo Hashimoto | e087ff6 | 2013-11-29 17:30:23 +0900 | [diff] [blame] | 20 | |
| 21 | } // namespace cryptohome |
| 22 | |
Ben Chan | 7852b21 | 2018-10-04 01:07:19 -0700 | [diff] [blame] | 23 | #endif // SYSTEM_API_CONSTANTS_CRYPTOHOME_H_ |