diff options
Diffstat (limited to 'fst')
| -rw-r--r-- | fst/sandbox.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fst/sandbox.go b/fst/sandbox.go index b1240eca..fadf39e3 100644 --- a/fst/sandbox.go +++ b/fst/sandbox.go @@ -245,9 +245,7 @@ func (s *SandboxConfig) ToContainer(sys SandboxSys, uid, gid *int) (*sandbox.Par if etcPath == "" { etcPath = "/etc" } - container. - Bind(etcPath, Tmp+"/etc", 0). - Mkdir("/etc", 0700) + container.Bind(etcPath, Tmp+"/etc", 0) // link host /etc contents to prevent dropping passwd/group bind mounts if d, err := sys.ReadDir(etcPath); err != nil { |
