Skip to content

Commit

Permalink
Merge pull request #9548 from Dzejrou/1.7_fix_ignoring_umask
Browse files Browse the repository at this point in the history
[release/1.7] shim: Create pid-file and address with 0644 permissions
  • Loading branch information
AkihiroSuda committed Jan 8, 2024
2 parents 5a675f2 + 8d82242 commit 50e7359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/v2/shim/util.go
Expand Up @@ -126,7 +126,7 @@ func WritePidFile(path string, pid int) error {
if err != nil {
return err
}
f, err := atomicfile.New(path, 0o666)
f, err := atomicfile.New(path, 0o644)
if err != nil {
return err
}
Expand All @@ -144,7 +144,7 @@ func WriteAddress(path, address string) error {
if err != nil {
return err
}
f, err := atomicfile.New(path, 0o666)
f, err := atomicfile.New(path, 0o644)
if err != nil {
return err
}
Expand Down

0 comments on commit 50e7359

Please sign in to comment.