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
+14
@@ -0,0 +1,14 @@
|
||||
// Escape attempt: mounting a fresh procfs is killed by the seccomp policy.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func main() {
|
||||
_ = os.MkdirAll("/tmp/proc", 0o700)
|
||||
err := syscall.Mount("proc", "/tmp/proc", "proc", 0, "")
|
||||
fmt.Println("mount returned", err)
|
||||
}
|
||||
Reference in new issue
Block a user