aboutsummaryrefslogtreecommitdiffstats
path: root/test/seccomp-umount.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 07:27:31 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 07:27:31 -0400
commita1272742cfbdbfe999a701f804b58ceb4605713d (patch)
tree16d6013c8d99d9e4370d1672b4018f958081f416 /test/seccomp-umount.exp
parentMerge pull request #490 from reinerh/master (diff)
downloadfirejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.gz
firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.tar.zst
firejail-a1272742cfbdbfe999a701f804b58ceb4605713d.zip
added make test-filters
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"