aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/whitelist-empty.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
commit37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch)
tree5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/fs/whitelist-empty.exp
parentrename generic.profile as default.profile (diff)
downloadfirejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip
testing
Diffstat (limited to 'test/fs/whitelist-empty.exp')
-rwxr-xr-xtest/fs/whitelist-empty.exp53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/fs/whitelist-empty.exp b/test/fs/whitelist-empty.exp
new file mode 100755
index 000000000..f44d4fb58
--- /dev/null
+++ b/test/fs/whitelist-empty.exp
@@ -0,0 +1,53 @@
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 30
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --whitelist=~/blablabla --whitelist=/tmp/blablabla --whitelist=/media/blablabla --whitelist=/var/blablabla --whitelist=/dev/blablabla --whitelist=/opt/blablabla\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 "Child process initialized"
14}
15sleep 1
16
17send -- "ls -l ~/ | wc -l\r"
18expect {
19 timeout {puts "TESTING ERROR 1\n";exit}
20 "0"
21}
22
23send -- "ls -l /tmp | wc -l\r"
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 "0"
27}
28
29send -- "ls -l /media | wc -l\r"
30expect {
31 timeout {puts "TESTING ERROR 3\n";exit}
32 "0"
33}
34
35send -- "ls -l /var | wc -l\r"
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 "0"
39}
40
41send -- "ls -l /dev | wc -l\r"
42expect {
43 timeout {puts "TESTING ERROR 5\n";exit}
44 "0"
45}
46send -- "ls -l /opt | wc -l\r"
47expect {
48 timeout {puts "TESTING ERROR 6\n";exit}
49 "0"
50}
51
52
53puts "\nall done\n"