aboutsummaryrefslogtreecommitdiffstats
path: root/test/private-etc.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/private-etc.exp
parentrename generic.profile as default.profile (diff)
downloadfirejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip
testing
Diffstat (limited to 'test/private-etc.exp')
-rwxr-xr-xtest/private-etc.exp42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/private-etc.exp b/test/private-etc.exp
deleted file mode 100755
index db1d1df3a..000000000
--- a/test/private-etc.exp
+++ /dev/null
@@ -1,42 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# directory with ~
8send -- "firejail --private-etc=passwd,group,resolv.conf,X11\r"
9expect {
10 timeout {puts "TESTING ERROR 1\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "ls -al /etc\r"
16expect {
17 timeout {puts "TESTING ERROR 3\n";exit}
18 "group"
19}
20expect {
21 timeout {puts "TESTING ERROR 4\n";exit}
22 "passwd"
23}
24expect {
25 timeout {puts "TESTING ERROR 5\n";exit}
26 "resolv.conf"
27}
28expect {
29 timeout {puts "TESTING ERROR 6\n";exit}
30 "X11"
31}
32
33send -- "ls -al /etc\r"
34expect {
35 timeout {puts "TESTING ERROR 7\n";exit}
36 "shadow" {puts "TESTING ERROR 8\n";exit}
37 "X11"
38}
39
40sleep 1
41puts "\nall done\n"
42