• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto3";
18
19package android.profiles;
20
21// Next: 3
22message Cgroups {
23    repeated Cgroup cgroups = 1 [json_name = "Cgroups"];
24    Cgroups2 cgroups2 = 2 [json_name = "Cgroups2"];
25}
26
27// Next: 8
28message Cgroup {
29    string controller = 1 [json_name = "Controller"];
30    string path = 2 [json_name = "Path"];
31    string mode = 3 [json_name = "Mode"];
32    string uid = 4 [json_name = "UID"];
33    string gid = 5 [json_name = "GID"];
34// Booleans default to false when not specified. File reconstruction fails
35// when a boolean is specified as false, so leave unspecified in that case
36// https://developers.google.com/protocol-buffers/docs/proto3#default
37    bool needs_activation = 6 [json_name = "NeedsActivation"];
38    bool is_optional = 7 [json_name = "Optional"];
39}
40
41// Next: 6
42message Cgroups2 {
43    string path = 1 [json_name = "Path"];
44    string mode = 2 [json_name = "Mode"];
45    string uid = 3 [json_name = "UID"];
46    string gid = 4 [json_name = "GID"];
47    repeated Cgroup controllers = 5 [json_name = "Controllers"];
48}
49