summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 04:48:44 -0400
committerGitHub <noreply@github.com>2020-06-29 04:48:44 -0400
commit6213488d2beb5a9fdd4aeb5584d3537fbabdbcd0 (patch)
treeec5d180a8ababab2c7edbb4342b7a52ccd504d61 /pkg
parent673116c063f173ae7ff799a920f9c1ca28194b9d (diff)
parentf0ca17650e10e1a922a1cd95780c8449ec0d5490 (diff)
downloadpodman-6213488d2beb5a9fdd4aeb5584d3537fbabdbcd0.tar.gz
podman-6213488d2beb5a9fdd4aeb5584d3537fbabdbcd0.tar.bz2
podman-6213488d2beb5a9fdd4aeb5584d3537fbabdbcd0.zip
Merge pull request #6791 from mheon/fix_service_umask
Ensure umask is set appropriately for 'system service'
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/server/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/api/server/server.go b/pkg/api/server/server.go
index bd6a99b96..5b2f8bea2 100644
--- a/pkg/api/server/server.go
+++ b/pkg/api/server/server.go
@@ -173,6 +173,10 @@ func (s *APIServer) Serve() error {
}()
}
+ // Before we start serving, ensure umask is properly set for container
+ // creation.
+ _ = syscall.Umask(0022)
+
go func() {
err := s.Server.Serve(s.Listener)
if err != nil && err != http.ErrServerClosed {