Add executable flag to sbox copy requests

Add a boolean flag to the sbox proto to request the executable bit
to be set after copying a file.  This will be used for sandboxing
tools when copying a file in from the source tree that would
normally get its executable bit set during installation.

Bug: 124313442
Test: sbox_test.go
Change-Id: Ie2c197bb5183ffc1bf63fd6effd175143cd324d4
This commit is contained in:
Colin Cross
2020-11-30 20:12:47 -08:00
parent 5d5839522c
commit 859dfd9240
3 changed files with 37 additions and 21 deletions

View File

@@ -55,4 +55,7 @@ message Command {
message Copy {
required string from = 1;
required string to = 2;
// If true, make the file executable after copying it.
optional bool executable = 3;
}