Ophestra Umiker
101e49a48b
These flags do not support --chmod. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
26 lines
383 B
Go
26 lines
383 B
Go
package bwrap
|
|
|
|
const (
|
|
Tmpfs = iota
|
|
Dir
|
|
Symlink
|
|
|
|
interfaceC
|
|
)
|
|
|
|
var interfaceArgs = func() (g [interfaceC]string) {
|
|
g[Tmpfs] = "--tmpfs"
|
|
g[Dir] = "--dir"
|
|
g[Symlink] = "--symlink"
|
|
|
|
return
|
|
}()
|
|
|
|
func (c *Config) interfaceArgs() (g [interfaceC][]argOf) {
|
|
g[Tmpfs] = copyToArgOfSlice(c.Tmpfs)
|
|
g[Dir] = copyToArgOfSlice(c.Dir)
|
|
g[Symlink] = copyToArgOfSlice(c.Symlink)
|
|
|
|
return
|
|
}
|