Files
podman/vendor/go.podman.io/common/pkg/umask/umask_unix.go
2025-09-01 12:33:04 +02:00

21 lines
316 B
Go

//go:build linux || darwin
package umask
import (
"syscall"
"github.com/sirupsen/logrus"
)
func Check() {
oldUmask := syscall.Umask(0o022) //nolint
if (oldUmask & ^0o022) != 0 {
logrus.Debugf("umask value too restrictive. Forcing it to 022")
}
}
func Set(value int) int {
return syscall.Umask(value)
}