aboutsummaryrefslogtreecommitdiffstats
path: root/test/seccomp-umount.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/seccomp-umount.exp')
-rwxr-xr-xtest/seccomp-umount.exp28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/seccomp-umount.exp b/test/seccomp-umount.exp
deleted file mode 100755
index c0107a084..000000000
--- a/test/seccomp-umount.exp
+++ /dev/null
@@ -1,28 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "sudo ls; sudo whoami; sudo pwd\r"
8expect {
9 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
10 "root"
11}
12
13send -- "firejail --net=br0 --ip=10.10.20.5 --seccomp --noprofile\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized"
17}
18sleep 2
19
20send -- "umount /proc\r"
21expect {
22 timeout {puts "TESTING ERROR 1\n";exit}
23 "Bad system call"
24}
25
26send -- "exit\r"
27sleep 1
28puts "\n"