14 lines
188 B
Go
14 lines
188 B
Go
|
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
|
||
|
}
|