aboutsummaryrefslogtreecommitdiffstats
path: root/test/whitelist-empty.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-02-08 12:58:37 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-02-08 12:58:37 -0500
commit9c0730573aa6f5cf96278704a9a8c14457f1e010 (patch)
tree0c1c05f54f2eaa146131c16bc877dec200f39931 /test/whitelist-empty.exp
parentset window title (diff)
downloadfirejail-9c0730573aa6f5cf96278704a9a8c14457f1e010.tar.gz
firejail-9c0730573aa6f5cf96278704a9a8c14457f1e010.tar.zst
firejail-9c0730573aa6f5cf96278704a9a8c14457f1e010.zip
fixed whitelist problem
Diffstat (limited to 'test/whitelist-empty.exp')
-rwxr-xr-xtest/whitelist-empty.exp50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/whitelist-empty.exp b/test/whitelist-empty.exp
new file mode 100755
index 000000000..226b019db
--- /dev/null
+++ b/test/whitelist-empty.exp
@@ -0,0 +1,50 @@
1#!/usr/bin/expect -f
2
3set timeout 30
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --whitelist=~/blablabla --whitelist=/tmp/blablabla --whitelist=/media/blablabla --whitelist=/var/blablabla --whitelist=/dev/blablabla --whitelist=/opt/blablabla\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "ls -l ~/ | wc -l\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "0"
18}
19
20send -- "ls -l /tmp | wc -l\r"
21expect {
22 timeout {puts "TESTING ERROR 2\n";exit}
23 "0"
24}
25
26send -- "ls -l /media | wc -l\r"
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 "0"
30}
31
32send -- "ls -l /var | wc -l\r"
33expect {
34 timeout {puts "TESTING ERROR 4\n";exit}
35 "0"
36}
37
38send -- "ls -l /dev | wc -l\r"
39expect {
40 timeout {puts "TESTING ERROR 5\n";exit}
41 "0"
42}
43send -- "ls -l /opt | wc -l\r"
44expect {
45 timeout {puts "TESTING ERROR 6\n";exit}
46 "0"
47}
48
49
50puts "\nall done\n"