mirror of
https://github.com/containers/podman.git
synced 2025-09-26 00:06:04 +08:00

The buildah/pkg/secrts package was move to containers/common/pkg/subscriptions. Switch to using this by default. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
21 lines
310 B
Go
21 lines
310 B
Go
// +build linux darwin
|
|
|
|
package umask
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func Check() {
|
|
oldUmask := syscall.Umask(0022) //nolint
|
|
if (oldUmask & ^0022) != 0 {
|
|
logrus.Debugf("umask value too restrictive. Forcing it to 022")
|
|
}
|
|
}
|
|
|
|
func Set(value int) int {
|
|
return syscall.Umask(value)
|
|
}
|