diff options
Diffstat (limited to 'fst')
| -rw-r--r-- | fst/config.go | 2 | ||||
| -rw-r--r-- | fst/sandbox.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fst/config.go b/fst/config.go index 1a989e42..f227b029 100644 --- a/fst/config.go +++ b/fst/config.go @@ -105,7 +105,7 @@ func Template() *Config { Devel: true, Userns: true, Net: true, - Dev: true, + Device: true, Seccomp: seccomp.FilterMultiarch, Tty: true, Multiarch: true, diff --git a/fst/sandbox.go b/fst/sandbox.go index 2a6f3475..0cc37908 100644 --- a/fst/sandbox.go +++ b/fst/sandbox.go @@ -39,7 +39,7 @@ type ( MapRealUID bool `json:"map_real_uid"` // expose all devices - Dev bool `json:"dev,omitempty"` + Device bool `json:"device,omitempty"` // container host filesystem bind mounts Filesystem []*FilesystemConfig `json:"filesystem"` // create symlinks inside container filesystem @@ -135,7 +135,7 @@ func (s *SandboxConfig) ToContainer(sys SandboxSys, uid, gid *int) (*sandbox.Par Proc("/proc"). Tmpfs(Tmp, 1<<12, 0755) - if !s.Dev { + if !s.Device { container.Dev("/dev").Mqueue("/dev/mqueue") } else { container.Bind("/dev", "/dev", sandbox.BindDevice) |
