From 4d31065cc50537d4dbc17c57a747204b9343d0e2 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Sat, 5 Jan 2019 12:41:57 +0100 Subject: podman: set umask to 022 be sure there are no bits in the umask that prevent us for creating directories with mode 0755. Set the umask very early in the program startup. Closes: https://github.com/containers/libpod/issues/2074 Signed-off-by: Giuseppe Scrivano --- cmd/podman/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/podman/main.go') 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 -- cgit v1.2.3-54-g00ecf