diff options
author | Matthias Maennich <maennich@google.com> | 2021-11-22 17:11:00 +0000 |
---|---|---|
committer | Matthias Maennich <maennich@google.com> | 2021-11-24 12:29:14 +0000 |
commit | b24e7d0b03bbe0eb6f5e8885e206df8fe505236e (patch) | |
tree | d307e895797a36c27129c3006858b329dfa535ed /interceptor/log.proto | |
parent | b6a1699a69b5b361e6a06c507e8e98fc32933bed (diff) | |
download | build-tools-b24e7d0b03bbe0eb6f5e8885e206df8fe505236e.tar.gz |
interceptor: replace custom Command class by proto class
Though this removes the lazy evaluation of args and env to a be always
done now, this hardly every was truly omitted. Hence, this is not a
regression. Instead the code could be tidied up to have only one data
format that also serializes.
No functional change intended.
Bug: 205577427
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ia3790d36c5477eb39dd6980d35b638803726d49d
Diffstat (limited to 'interceptor/log.proto')
-rw-r--r-- | interceptor/log.proto | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/interceptor/log.proto b/interceptor/log.proto index a3650ec..8e721b3 100644 --- a/interceptor/log.proto +++ b/interceptor/log.proto @@ -16,15 +16,16 @@ syntax = "proto3"; -package interceptor.log; +package interceptor; // A Command as traced by intercepting an execve() invocation. message Command { string program = 1; repeated string args = 2; - string current_dir = 3; - repeated string inputs = 4; - repeated string outputs = 5; + map<string, string> env_vars = 3; + string current_dir = 4; + repeated string inputs = 5; + repeated string outputs = 6; }; // A single message as emitted by an intercepted process. It can contain any of |