aboutsummaryrefslogtreecommitdiffstats
path: root/test/private-etc.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 21:20:14 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 21:20:14 -0500
commitc0dc4e056589c41b423e9a5c1fe5edd2b845967a (patch)
treee61d391ac05062514c2ae692378ac8171a02da59 /test/private-etc.exp
parent0.9.36 testing (diff)
downloadfirejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.gz
firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.zst
firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.zip
0.9.36 testing
Diffstat (limited to 'test/private-etc.exp')
-rwxr-xr-xtest/private-etc.exp12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/private-etc.exp b/test/private-etc.exp
index 9df798e22..db1d1df3a 100755
--- a/test/private-etc.exp
+++ b/test/private-etc.exp
@@ -5,7 +5,7 @@ spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7# directory with ~ 7# directory with ~
8send -- "firejail --private-etc=passwd,group,resolv.conf,bash_completion.d,timezone\r" 8send -- "firejail --private-etc=passwd,group,resolv.conf,X11\r"
9expect { 9expect {
10 timeout {puts "TESTING ERROR 1\n";exit} 10 timeout {puts "TESTING ERROR 1\n";exit}
11 "Child process initialized" 11 "Child process initialized"
@@ -14,10 +14,6 @@ sleep 1
14 14
15send -- "ls -al /etc\r" 15send -- "ls -al /etc\r"
16expect { 16expect {
17 timeout {puts "TESTING ERROR 2\n";exit}
18 "bash_completion.d"
19}
20expect {
21 timeout {puts "TESTING ERROR 3\n";exit} 17 timeout {puts "TESTING ERROR 3\n";exit}
22 "group" 18 "group"
23} 19}
@@ -31,16 +27,16 @@ expect {
31} 27}
32expect { 28expect {
33 timeout {puts "TESTING ERROR 6\n";exit} 29 timeout {puts "TESTING ERROR 6\n";exit}
34 "timezone" 30 "X11"
35} 31}
36 32
37send -- "ls -al /etc\r" 33send -- "ls -al /etc\r"
38expect { 34expect {
39 timeout {puts "TESTING ERROR 7\n";exit} 35 timeout {puts "TESTING ERROR 7\n";exit}
40 "shadow" {puts "TESTING ERROR 8\n";exit} 36 "shadow" {puts "TESTING ERROR 8\n";exit}
41 "timezone" 37 "X11"
42} 38}
43 39
44sleep 1 40sleep 1
45puts "\n" 41puts "\nall done\n"
46 42