test(runner): verify sandbox isolation with a hostile program suite
This commit is contained in:
1 parent
afee564bf4
commit
e858280d91
38 files changed
+1359
-168
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in new issue
Block a user