Files
lincodex/runner/testdata/hostile/go/unshare_user.go
T

14 lines
234 B
Go

// Escape attempt: unshare into a new user namespace is killed by the
// seccomp policy.
package main
import (
"fmt"
"syscall"
)
func main() {
err := syscall.Unshare(syscall.CLONE_NEWUSER)
fmt.Println("unshare returned", err)
}