aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/sptmpdir.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/outcome/sptmpdir.go')
-rw-r--r--internal/outcome/sptmpdir.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/outcome/sptmpdir.go b/internal/outcome/sptmpdir.go
index daa6f0de..c0c8db7b 100644
--- a/internal/outcome/sptmpdir.go
+++ b/internal/outcome/sptmpdir.go
@@ -19,10 +19,9 @@ type spTmpdirOp struct{}
func (s spTmpdirOp) toSystem(state *outcomeStateSys) error {
if state.Container.Flags&hst.FShareTmpdir != 0 {
tmpdir, tmpdirInst := s.commonPaths(state.outcomeState)
- state.sys.Ensure(tmpdir, 0700)
- state.sys.UpdatePermType(system.User, tmpdir, acl.Execute)
- state.sys.Ensure(tmpdirInst, 01700)
- state.sys.UpdatePermType(system.User, tmpdirInst, acl.Read, acl.Write, acl.Execute)
+ state.sys.Ensure(tmpdir, 0711, false)
+ state.sys.Ensure(tmpdirInst, 01700, true)
+ state.sys.UpdatePermType(system.User, tmpdirInst, acl.Read|acl.Write|acl.Execute)
}
return nil
}