aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/whitelist-empty.exp
diff options
context:
space:
mode:
authorLibravatar curiosity-seeker <seeker@posteo.org>2016-12-15 12:58:32 +0100
committerLibravatar GitHub <noreply@github.com>2016-12-15 12:58:32 +0100
commitd8ee390a6ca56fde4baad57dea7572c39d595809 (patch)
tree255252b15232086e6f65203cda676859ab4117a0 /test/fs/whitelist-empty.exp
parentUpdate quiterss.profile (diff)
parentadded a 1 second delay after xpra server is started (diff)
downloadfirejail-d8ee390a6ca56fde4baad57dea7572c39d595809.tar.gz
firejail-d8ee390a6ca56fde4baad57dea7572c39d595809.tar.zst
firejail-d8ee390a6ca56fde4baad57dea7572c39d595809.zip
Merge pull request #1 from netblue30/master
Bring fork up-to-date
Diffstat (limited to 'test/fs/whitelist-empty.exp')
-rwxr-xr-xtest/fs/whitelist-empty.exp54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/fs/whitelist-empty.exp b/test/fs/whitelist-empty.exp
new file mode 100755
index 000000000..71bb8f914
--- /dev/null
+++ b/test/fs/whitelist-empty.exp
@@ -0,0 +1,54 @@
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
52after 100
53
54puts "\nall done\n"