bwrap: implement argument builder

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-09-30 00:23:57 +09:00
parent df29068d16
commit ba76e2919b
7 changed files with 562 additions and 0 deletions

22
bwrap/config.int.go Normal file
View File

@@ -0,0 +1,22 @@
package bwrap
const (
UID = iota
GID
intC
)
var intArgs = func() (n [intC]string) {
n[UID] = "--uid"
n[GID] = "--gid"
return
}()
func (c *Config) intArgs() (n [intC]*int) {
n[UID] = c.UID
n[GID] = c.GID
return
}