diff options
Diffstat (limited to 'test/filters/seccomp-umount.exp')
-rwxr-xr-x | test/filters/seccomp-umount.exp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/filters/seccomp-umount.exp b/test/filters/seccomp-umount.exp deleted file mode 100755 index df38dba5e..000000000 --- a/test/filters/seccomp-umount.exp +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "sudo ls; sudo whoami; sudo pwd\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit} | ||
13 | "root" | ||
14 | } | ||
15 | |||
16 | send -- "firejail --net=br0 --ip=10.10.20.5 --seccomp --noprofile\r" | ||
17 | expect { | ||
18 | timeout {puts "TESTING ERROR 0\n";exit} | ||
19 | "Child process initialized" | ||
20 | } | ||
21 | sleep 2 | ||
22 | |||
23 | send -- "umount /proc\r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 1\n";exit} | ||
26 | "Bad system call" | ||
27 | } | ||
28 | |||
29 | send -- "exit\r" | ||
30 | after 100 | ||
31 | puts "\n" | ||