diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-12 19:34:44 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-12 19:34:44 +0000 |
commit | 6e7dd2608b70e416f516d373fab7b5432fff91fa (patch) | |
tree | 7a71336265aa2c023d56e0c726c59cd7ccef69b8 /runsc/specutils | |
parent | 3bdb2baa20f9fdccf729f423a6f1236f9dce0128 (diff) | |
parent | f2e4b5ab932a3816e4957171b303db645fd04a94 (diff) |
Merge release-20200219.0-157-gf2e4b5a (automated)
Diffstat (limited to 'runsc/specutils')
-rw-r--r-- | runsc/specutils/namespace.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runsc/specutils/namespace.go b/runsc/specutils/namespace.go index c7dd3051c..60bb7b7ee 100644 --- a/runsc/specutils/namespace.go +++ b/runsc/specutils/namespace.go @@ -252,6 +252,9 @@ func MaybeRunAsRoot() error { }, Credential: &syscall.Credential{Uid: 0, Gid: 0}, GidMappingsEnableSetgroups: false, + + // Make sure child is killed when the parent terminates. + Pdeathsig: syscall.SIGKILL, } cmd.Env = os.Environ() |