aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/bwrap/config.set.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-06 04:21:37 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-06 04:21:37 +0900
commit8d0573405a8a58a57c39b008150d75d3be2894c2 (patch)
treedb64f6990a74e4e2007162634170a30ad86dc10f /helper/bwrap/config.set.go
parent38e92edb8efd7cc74031d013a13af5c1c8ddd284 (diff)
helper/bwrap: implement sync fd
This is required by wayland security-context-v1. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/bwrap/config.set.go')
-rw-r--r--helper/bwrap/config.set.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/helper/bwrap/config.set.go b/helper/bwrap/config.set.go
index 318ad7f2..e9d3e131 100644
--- a/helper/bwrap/config.set.go
+++ b/helper/bwrap/config.set.go
@@ -136,3 +136,10 @@ func (c *Config) SetGID(gid int) *Config {
}
return c
}
+
+// SetSync sets the sync pipe kept open while sandbox is running
+// (--sync-fd FD)
+func (c *Config) SetSync(s *os.File) *Config {
+ c.sync = s
+ return c
+}