blob: 6e7fc7bd783341bbb5008a6ed238edccec3000f9 [file] [log] [blame]
Ryo Hashimotoe087ff62013-11-29 17:30:23 +09001// 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 Chan7852b212018-10-04 01:07:19 -07005#ifndef SYSTEM_API_CONSTANTS_CRYPTOHOME_H_
6#define SYSTEM_API_CONSTANTS_CRYPTOHOME_H_
Ryo Hashimotoe087ff62013-11-29 17:30:23 +09007
Avi Drissmana0331032015-12-26 15:42:35 -05008#include <stdint.h>
9
Ryo Hashimotoe087ff62013-11-29 17:30:23 +090010namespace cryptohome {
11
12// Cleanup is trigerred if the amount of free disk space goes below this value.
Avi Drissmana0331032015-12-26 15:42:35 -050013const int64_t kMinFreeSpaceInBytes = 512 * 1LL << 20;
Igor8f60c9c2019-03-01 16:55:34 +010014// 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.
16constexpr char kLockedToSingleUserFile[] =
17 "/run/cryptohome/locked_to_single_user";
Jorge Lucangeli Obes57590e22020-04-09 17:54:22 -040018// Path to the mount namespace to run user sessions in.
19constexpr char kUserSessionMountNamespacePath[] = "/run/namespaces/mnt_chrome";
Ryo Hashimotoe087ff62013-11-29 17:30:23 +090020
21} // namespace cryptohome
22
Ben Chan7852b212018-10-04 01:07:19 -070023#endif // SYSTEM_API_CONSTANTS_CRYPTOHOME_H_