diff options
author | Marco Ballesio <balejs@google.com> | 2020-08-20 08:59:09 -0700 |
---|---|---|
committer | Marco Ballesio <balejs@google.com> | 2020-08-27 08:34:39 -0700 |
commit | 6b67edb3fb18a476c2b9e52c100af79def0a58a7 (patch) | |
tree | 67aba479aa47ef1c4dcd130595b743558e0e4a01 | |
parent | 510f89ec0ed82b07638f0e08f7b70d4c232f49c0 (diff) | |
download | core-6b67edb3fb18a476c2b9e52c100af79def0a58a7.tar.gz |
libprocessgroup: json prototype for cgroups v2
cgroups v2 support introduces new fields in the json format. Adapt the
proto file accordingly
Bug: 154548692
Test: atest libprocessgroup_proto_test --
Change-Id: I40f8757a8f4e6a0b839caa7faa976dfebf3aac98
Merged-In: I40f8757a8f4e6a0b839caa7faa976dfebf3aac98
-rw-r--r-- | libprocessgroup/profiles/cgroups.proto | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libprocessgroup/profiles/cgroups.proto b/libprocessgroup/profiles/cgroups.proto index f4070c550..13adcae07 100644 --- a/libprocessgroup/profiles/cgroups.proto +++ b/libprocessgroup/profiles/cgroups.proto @@ -24,19 +24,24 @@ message Cgroups { Cgroups2 cgroups2 = 2 [json_name = "Cgroups2"]; } -// Next: 6 +// Next: 7 message Cgroup { string controller = 1 [json_name = "Controller"]; string path = 2 [json_name = "Path"]; string mode = 3 [json_name = "Mode"]; string uid = 4 [json_name = "UID"]; string gid = 5 [json_name = "GID"]; +// Booleans default to false when not specified. File reconstruction fails +// when a boolean is specified as false, so leave unspecified in that case +// https://developers.google.com/protocol-buffers/docs/proto3#default + bool needs_activation = 6 [json_name = "NeedsActivation"]; } -// Next: 5 +// Next: 6 message Cgroups2 { string path = 1 [json_name = "Path"]; string mode = 2 [json_name = "Mode"]; string uid = 3 [json_name = "UID"]; string gid = 4 [json_name = "GID"]; + repeated Cgroup controllers = 5 [json_name = "Controllers"]; } |