diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-29 04:48:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 04:48:44 -0400 |
commit | 6213488d2beb5a9fdd4aeb5584d3537fbabdbcd0 (patch) | |
tree | ec5d180a8ababab2c7edbb4342b7a52ccd504d61 | |
parent | 673116c063f173ae7ff799a920f9c1ca28194b9d (diff) | |
parent | f0ca17650e10e1a922a1cd95780c8449ec0d5490 (diff) | |
download | podman-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'
-rw-r--r-- | pkg/api/server/server.go | 4 |
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 { |