Sergei Datsenko | add282e | 2020-11-16 15:41:24 +1100 | [diff] [blame] | 1 | // Copyright 2020 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 | #ifndef CROS_DISKS_USER_H_ |
| 6 | #define CROS_DISKS_USER_H_ |
| 7 | |
| 8 | #include <sys/types.h> |
| 9 | |
| 10 | namespace cros_disks { |
| 11 | |
| 12 | // UID of the chronos user running UI and user apps. |
| 13 | constexpr uid_t kChronosUID = 1000; |
| 14 | // GID of the chronos user running UI and user apps. |
| 15 | constexpr uid_t kChronosGID = 1000; |
| 16 | |
| 17 | // GID of the chronos-access group used to broker access to user's files. |
| 18 | constexpr gid_t kChronosAccessGID = 1001; |
| 19 | |
| 20 | // UID/GID of an user owning a file/process. |
| 21 | struct OwnerUser { |
| 22 | uid_t uid; |
| 23 | gid_t gid; |
| 24 | }; |
| 25 | |
| 26 | } // namespace cros_disks |
| 27 | |
| 28 | #endif // CROS_DISKS_USER_H_ |