From 2f705068658bf9c47a5fa829105111e46a7732a0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 19 Jan 2025 18:38:13 +0900 Subject: helper/bwrap: move sync to helper state Signed-off-by: Ophestra --- helper/bwrap/config.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'helper/bwrap/config.go') diff --git a/helper/bwrap/config.go b/helper/bwrap/config.go index 6ca67793..8def27a6 100644 --- a/helper/bwrap/config.go +++ b/helper/bwrap/config.go @@ -1,9 +1,5 @@ package bwrap -import ( - "os" -) - type Config struct { // unshare every namespace we support by default if nil // (--unshare-all) @@ -61,10 +57,6 @@ type Config struct { // (--as-pid-1) AsInit bool `json:"as_init"` - // keep this fd open while sandbox is running - // (--sync-fd FD) - sync *os.File - /* unmapped options include: --unshare-user-try Create new user namespace if possible else continue by skipping it --unshare-cgroup-try Create new cgroup namespace if possible else continue by skipping it @@ -90,12 +82,6 @@ type Config struct { among which --args is used internally for passing arguments */ } -// Sync keep this fd open while sandbox is running -// (--sync-fd FD) -func (c *Config) Sync() *os.File { - return c.sync -} - type UnshareConfig struct { // (--unshare-user) // create new user namespace -- cgit v1.3.1