mirror of
https://github.com/containers/skopeo.git
synced 2025-09-25 12:16:17 +00:00
We want to get support into skopeo for handling override_kernel_checks so that we can use overlay backend on RHEL. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
14 lines
250 B
Go
14 lines
250 B
Go
// +build !windows
|
|
|
|
package system
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
// Umask sets current process's file mode creation mask to newmask
|
|
// and returns oldmask.
|
|
func Umask(newmask int) (oldmask int, err error) {
|
|
return unix.Umask(newmask), nil
|
|
}
|