From 2f4f21fb183a1880c0363ad65f443b4af64a5359 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 11 Apr 2025 19:22:00 +0900 Subject: fst: rename device field Dev is very ambiguous. Rename it here alongside upcoming config changes. Signed-off-by: Ophestra --- fst/sandbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fst/sandbox.go') 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) -- cgit v1.3.1