mirror of
https://github.com/containers/podman.git
synced 2025-11-01 02:42:11 +08:00
Switch from pkg/secrets to pkg/subscriptions
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>
This commit is contained in:
20
vendor/github.com/containers/common/pkg/umask/umask_unix.go
generated
vendored
Normal file
20
vendor/github.com/containers/common/pkg/umask/umask_unix.go
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
// +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)
|
||||
}
|
||||
7
vendor/github.com/containers/common/pkg/umask/umask_unsupported.go
generated
vendored
Normal file
7
vendor/github.com/containers/common/pkg/umask/umask_unsupported.go
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
// +build !linux,!darwin
|
||||
|
||||
package umask
|
||||
|
||||
func Check() {}
|
||||
|
||||
func Set(int) int { return 0 }
|
||||
Reference in New Issue
Block a user