aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/proc
diff options
context:
space:
mode:
Diffstat (limited to 'internal/proc')
-rw-r--r--internal/proc/priv/shim/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/proc/priv/shim/main.go b/internal/proc/priv/shim/main.go
index 49ec7f1a..6bd08343 100644
--- a/internal/proc/priv/shim/main.go
+++ b/internal/proc/priv/shim/main.go
@@ -138,7 +138,11 @@ func Main() {
if b, err := helper.NewBwrap(
conf, innerInit,
nil, func(int, int) []string { return make([]string, 0) },
- syncFd,
+ []helper.BwrapExtraFile{
+ // keep this fd open while sandbox is running
+ // (--sync-fd FD)
+ {"--sync-fd", syncFd},
+ },
); err != nil {
fmsg.Fatalf("malformed sandbox config: %v", err)
} else {