Files
podman/vendor/github.com/containers/buildah/util/util_unix.go
Paul Holzinger 83a0299309 vendor: update buildah to latest
Includes a fix for CVE-2024-9407

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-02 18:04:39 +02:00

17 lines
247 B
Go

//go:build linux || darwin || freebsd || netbsd
package util
import (
"os"
"syscall"
)
func UID(st os.FileInfo) int {
return int(st.Sys().(*syscall.Stat_t).Uid)
}
func GID(st os.FileInfo) int {
return int(st.Sys().(*syscall.Stat_t).Gid)
}