aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-04-11 19:22:00 +0900
committerOphestra <cat@gensokyo.uk>2025-04-11 19:32:15 +0900
commit2f4f21fb183a1880c0363ad65f443b4af64a5359 (patch)
tree1e20d607f0f86dbde4960aa6c23f7b57c468f0f8 /fst
parent996790946092a9291eb21e297d1f0f04deab8b42 (diff)
fst: rename device field
Dev is very ambiguous. Rename it here alongside upcoming config changes. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
-rw-r--r--fst/config.go2
-rw-r--r--fst/sandbox.go4
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)