a304eab9d4
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
13 lines
188 B
Go
13 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
|
|
}
|