summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-09 16:37:13 +0200
committerGitHub <noreply@github.com>2019-09-09 16:37:13 +0200
commit16a70490852fdaf3ea5aeea6b2be19dd70fbf1c7 (patch)
tree6ce868c726a6c6eda915d3f4765be3933e3f55da
parentd78521de11c524d7b8ceee02b726f66da6d3301c (diff)
parentf44b05f6fda6ec91bc21088321da739ce26cfe2d (diff)
downloadpodman-16a70490852fdaf3ea5aeea6b2be19dd70fbf1c7.tar.gz
podman-16a70490852fdaf3ea5aeea6b2be19dd70fbf1c7.tar.bz2
podman-16a70490852fdaf3ea5aeea6b2be19dd70fbf1c7.zip
Merge pull request #3971 from cfelder/fixup-getconfighomedir
Fixup `util.GetRootlessConfigHomeDir` permission requirements
-rw-r--r--pkg/util/utils_supported.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/util/utils_supported.go b/pkg/util/utils_supported.go
index 707e193e9..253460686 100644
--- a/pkg/util/utils_supported.go
+++ b/pkg/util/utils_supported.go
@@ -83,7 +83,7 @@ func GetRootlessConfigHomeDir() (string, error) {
logrus.Errorf("unable to make temp dir %s", tmpDir)
}
st, err := os.Stat(tmpDir)
- if err == nil && int(st.Sys().(*syscall.Stat_t).Uid) == os.Geteuid() && st.Mode().Perm() == 0755 {
+ if err == nil && int(st.Sys().(*syscall.Stat_t).Uid) == os.Geteuid() && st.Mode().Perm() >= 0700 {
cfgHomeDir = tmpDir
}
}