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 | |
| 27 | // Next: 6 |
| 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"]; |
| 34 | } |
| 35 | |
| 36 | // Next: 5 |
| 37 | message Cgroups2 { |
| 38 | string path = 1 [json_name = "Path"]; |
| 39 | string mode = 2 [json_name = "Mode"]; |
| 40 | string uid = 3 [json_name = "UID"]; |
| 41 | string gid = 4 [json_name = "GID"]; |
| 42 | } |