diff options
author | netblue30 <netblue30@yahoo.com> | 2015-12-23 21:20:14 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-12-23 21:20:14 -0500 |
commit | c0dc4e056589c41b423e9a5c1fe5edd2b845967a (patch) | |
tree | e61d391ac05062514c2ae692378ac8171a02da59 /test/private-etc.exp | |
parent | 0.9.36 testing (diff) | |
download | firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.gz firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.zst firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.zip |
0.9.36 testing
Diffstat (limited to 'test/private-etc.exp')
-rwxr-xr-x | test/private-etc.exp | 12 |
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) | |||
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | # directory with ~ | 7 | # directory with ~ |
8 | send -- "firejail --private-etc=passwd,group,resolv.conf,bash_completion.d,timezone\r" | 8 | send -- "firejail --private-etc=passwd,group,resolv.conf,X11\r" |
9 | expect { | 9 | expect { |
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 | ||
15 | send -- "ls -al /etc\r" | 15 | send -- "ls -al /etc\r" |
16 | expect { | 16 | expect { |
17 | timeout {puts "TESTING ERROR 2\n";exit} | ||
18 | "bash_completion.d" | ||
19 | } | ||
20 | expect { | ||
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 | } |
32 | expect { | 28 | expect { |
33 | timeout {puts "TESTING ERROR 6\n";exit} | 29 | timeout {puts "TESTING ERROR 6\n";exit} |
34 | "timezone" | 30 | "X11" |
35 | } | 31 | } |
36 | 32 | ||
37 | send -- "ls -al /etc\r" | 33 | send -- "ls -al /etc\r" |
38 | expect { | 34 | expect { |
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 | ||
44 | sleep 1 | 40 | sleep 1 |
45 | puts "\n" | 41 | puts "\nall done\n" |
46 | 42 | ||