helper/bwrap: implement sync fd
All checks were successful
test / test (push) Successful in 38s

This is required by wayland security-context-v1.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-12-06 04:21:37 +09:00
parent 38e92edb8e
commit 8d0573405a
3 changed files with 26 additions and 1 deletions

View File

@@ -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
}