diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-19 18:38:13 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-19 18:38:13 +0900 |
| commit | 2f705068658bf9c47a5fa829105111e46a7732a0 (patch) | |
| tree | 4f75a66cb84cf5452c865afbdb9784adfded79b3 /helper/bwrap/config.go | |
| parent | cae567c1090ef12e9837f7dec4f43d030ec8f6b2 (diff) | |
helper/bwrap: move sync to helper state
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/bwrap/config.go')
| -rw-r--r-- | helper/bwrap/config.go | 14 |
1 files changed, 0 insertions, 14 deletions
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 |
