From 8d0573405a8a58a57c39b008150d75d3be2894c2 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 6 Dec 2024 04:21:37 +0900 Subject: helper/bwrap: implement sync fd This is required by wayland security-context-v1. Signed-off-by: Ophestra Umiker --- helper/bwrap/config.set.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'helper/bwrap/config.set.go') 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 +} -- cgit v1.3.1