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
+12
@@ -0,0 +1,12 @@
|
||||
// Escape attempt: ptrace is killed by the seccomp policy (SIGSYS).
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func main() {
|
||||
err := syscall.PtraceAttach(1)
|
||||
fmt.Println("ptrace returned", err)
|
||||
}
|
||||
Reference in new issue
Block a user