aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters
diff options
context:
space:
mode:
Diffstat (limited to 'test/filters')
-rwxr-xr-xtest/filters/filters.sh2
-rwxr-xr-xtest/filters/seccomp-su.exp2
-rwxr-xr-xtest/filters/seccomp-umount.exp31
3 files changed, 2 insertions, 33 deletions
diff --git a/test/filters/filters.sh b/test/filters/filters.sh
index 67b9f2c0d..5093c8614 100755
--- a/test/filters/filters.sh
+++ b/test/filters/filters.sh
@@ -45,7 +45,7 @@ echo "TESTING: seccomp chmod - seccomp lists (test/filters/seccomp-chmod.exp)"
45echo "TESTING: seccomp chmod profile - seccomp lists (test/filters/seccomp-chmod-profile.exp)" 45echo "TESTING: seccomp chmod profile - seccomp lists (test/filters/seccomp-chmod-profile.exp)"
46./seccomp-chmod-profile.exp 46./seccomp-chmod-profile.exp
47 47
48# todo: fix pwd and add seccomp-chown.exp and seccomp-umount.exp 48# todo: fix pwd and add seccomp-chown.exp
49 49
50echo "TESTING: seccomp empty (test/filters/seccomp-empty.exp)" 50echo "TESTING: seccomp empty (test/filters/seccomp-empty.exp)"
51./seccomp-empty.exp 51./seccomp-empty.exp
diff --git a/test/filters/seccomp-su.exp b/test/filters/seccomp-su.exp
index 7833c69b0..3feabc20f 100755
--- a/test/filters/seccomp-su.exp
+++ b/test/filters/seccomp-su.exp
@@ -30,7 +30,7 @@ expect {
30 30
31send -- "ping google.com\r" 31send -- "ping google.com\r"
32expect { 32expect {
33 timeout {puts "TESTING ERROR 2\n";exit} 33 timeout {puts "TESTING ERROR 3\n";exit}
34 "Operation not permitted" {puts "OK\n"} 34 "Operation not permitted" {puts "OK\n"}
35 "unknown host" {puts "OK\n"} 35 "unknown host" {puts "OK\n"}
36} 36}
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "sudo ls; sudo whoami; sudo pwd\r"
11expect {
12 timeout {puts "TESTING ERROR: you need to root run this test as root\n";exit}
13 "root"
14}
15
16send -- "firejail --net=br0 --ip=10.10.20.5 --seccomp --noprofile\r"
17expect {
18 timeout {puts "TESTING ERROR 0\n";exit}
19 "Child process initialized"
20}
21sleep 2
22
23send -- "umount /proc\r"
24expect {
25 timeout {puts "TESTING ERROR 1\n";exit}
26 "Bad system call"
27}
28
29send -- "exit\r"
30after 100
31puts "\n"