From 6a2802cf309fb9758756c56ef05c9354d9cb9003 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Mon, 7 Oct 2024 14:40:35 +0900 Subject: helper: move bwrap into helper Signed-off-by: Ophestra Umiker --- helper/bwrap/config.int.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 helper/bwrap/config.int.go (limited to 'helper/bwrap/config.int.go') 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 +} -- cgit v1.3.1