mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-29 11:47:51 +00:00
Merge pull request #6791 from mheon/fix_service_umask
Ensure umask is set appropriately for 'system service'
This commit is contained in:
commit
6213488d2b
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue