blob: f2de3452a2d9a86ceafb85f28a6f24102390d9d3 [file] [log] [blame]
Yifan Hong72ff5852019-02-13 14:32:34 -08001/*
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
Suren Baghdasaryan7f19b1e2021-03-10 10:31:35 -080027// Next: 8
Yifan Hong72ff5852019-02-13 14:32:34 -080028message 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"];
Marco Ballesio43050ba2020-08-20 08:59:09 -070034// 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"];
Suren Baghdasaryan7f19b1e2021-03-10 10:31:35 -080038 bool is_optional = 7 [json_name = "Optional"];
Yifan Hong72ff5852019-02-13 14:32:34 -080039}
40
Marco Ballesio43050ba2020-08-20 08:59:09 -070041// Next: 6
Yifan Hong72ff5852019-02-13 14:32:34 -080042message 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"];
Marco Ballesio43050ba2020-08-20 08:59:09 -070047 repeated Cgroup controllers = 5 [json_name = "Controllers"];
Yifan Hong72ff5852019-02-13 14:32:34 -080048}