pkg/system/setns_linux.go

14 lines
188 B
Go
Raw Normal View History

package system
import (
"syscall"
)
func Setns(fd uintptr, flags uintptr) error {
_, _, err := syscall.RawSyscall(SYS_SETNS, fd, flags, 0)
if err != 0 {
return err
}
return nil
}