diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-07 14:40:35 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-07 14:40:35 +0900 |
| commit | 6a2802cf309fb9758756c56ef05c9354d9cb9003 (patch) | |
| tree | d1efa27407aa3a2e1337fa4ffafa3df9fd677ec4 /helper/bwrap/config.int.go | |
| parent | 0fb9e401912f89d25ff96b0dd36aabf43b4fab8f (diff) | |
helper: move bwrap into helper
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/bwrap/config.int.go')
| -rw-r--r-- | helper/bwrap/config.int.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/helper/bwrap/config.int.go b/helper/bwrap/config.int.go new file mode 100644 index 00000000..27c88c36 --- /dev/null +++ b/helper/bwrap/config.int.go @@ -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 +} |
