Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 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 | |
| 17 | syntax = "proto3"; |
| 18 | |
| 19 | package android.profiles; |
| 20 | |
| 21 | // Next: 3 |
| 22 | message Cgroups { |
| 23 | repeated Cgroup cgroups = 1 [json_name = "Cgroups"]; |
| 24 | Cgroups2 cgroups2 = 2 [json_name = "Cgroups2"]; |
| 25 | } |
| 26 | |
Suren Baghdasaryan | 7f19b1e | 2021-03-10 10:31:35 -0800 | [diff] [blame] | 27 | // Next: 8 |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 28 | message 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 Ballesio | 43050ba | 2020-08-20 08:59:09 -0700 | [diff] [blame] | 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"]; |
Suren Baghdasaryan | 7f19b1e | 2021-03-10 10:31:35 -0800 | [diff] [blame] | 38 | bool is_optional = 7 [json_name = "Optional"]; |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 39 | } |
| 40 | |
Marco Ballesio | 43050ba | 2020-08-20 08:59:09 -0700 | [diff] [blame] | 41 | // Next: 6 |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 42 | message 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 Ballesio | 43050ba | 2020-08-20 08:59:09 -0700 | [diff] [blame] | 47 | repeated Cgroup controllers = 5 [json_name = "Controllers"]; |
Yifan Hong | 72ff585 | 2019-02-13 14:32:34 -0800 | [diff] [blame] | 48 | } |