mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
17 lines
247 B
Go
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)
|
|
}
|