summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-07 05:26:34 -0800
committerGitHub <noreply@github.com>2019-01-07 05:26:34 -0800
commitef29a3071202cc0fcc451ebdcaf948969bfe6306 (patch)
treea15ad13d2d90f86fc5d8bc9ef2ae46e6583e4c38 /cmd
parent1e4db4b0b8504e93e826d02b6c03cf78f41dcf7a (diff)
parent4d31065cc50537d4dbc17c57a747204b9343d0e2 (diff)
downloadpodman-ef29a3071202cc0fcc451ebdcaf948969bfe6306.tar.gz
podman-ef29a3071202cc0fcc451ebdcaf948969bfe6306.tar.bz2
podman-ef29a3071202cc0fcc451ebdcaf948969bfe6306.zip
Merge pull request #2088 from giuseppe/umask-to-0
podman: set umask to 022
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index 7ef22a93b..43804ee35 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -161,6 +161,9 @@ func main() {
logrus.Info("running as rootless")
}
+ // Be sure we can create directories with 0755 mode.
+ syscall.Umask(0022)
+
if logLevel == "debug" {
debug = true