summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/boot')
-rw-r--r--runsc/boot/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/runsc/boot/config.go b/runsc/boot/config.go
index 212f5b003..87a47dd0b 100644
--- a/runsc/boot/config.go
+++ b/runsc/boot/config.go
@@ -213,6 +213,11 @@ type Config struct {
// PanicSignal register signal handling that panics. Usually set to
// SIGUSR2(12) to troubleshoot hangs. -1 disables it.
PanicSignal int
+
+ // TestOnlyAllowRunAsCurrentUser should only be used in tests. It
+ // allows runsc to start the sandbox process as the current user if we
+ // do not have capability to set uid/gid to another user.
+ TestOnlyAllowRunAsCurrentUser bool
}
// ToFlags returns a slice of flags that correspond to the given Config.