aboutsummaryrefslogtreecommitdiffstats
path: root/test/fscheck-privatekeep.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fscheck-privatekeep.exp')
-rwxr-xr-xtest/fscheck-privatekeep.exp93
1 files changed, 0 insertions, 93 deletions
diff --git a/test/fscheck-privatekeep.exp b/test/fscheck-privatekeep.exp
deleted file mode 100755
index 6cbf98d96..000000000
--- a/test/fscheck-privatekeep.exp
+++ /dev/null
@@ -1,93 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7# dir
8#send -- "firejail --net=br0 --private-home=fscheck-dir\r"
9#expect {
10# timeout {puts "TESTING ERROR 0\n";exit}
11# "Error"
12#}
13#after 100
14
15# ..
16send -- "firejail --net=br0 --private-home=../test/fscheck-dir\r"
17expect {
18 timeout {puts "TESTING ERROR 0.1\n";exit}
19 "Error"
20}
21after 100
22
23# dir link
24send -- "firejail --net=br0 --private-home=fscheck-dir-link\r"
25expect {
26 timeout {puts "TESTING ERROR 1\n";exit}
27 "Error"
28}
29after 100
30
31# ..
32send -- "firejail --net=br0 --private-home=../test/fscheck-dir-link\r"
33expect {
34 timeout {puts "TESTING ERROR 1.1\n";exit}
35 "Error"
36}
37after 100
38
39# file link
40send -- "firejail --net=br0 --private-home=fscheck-file-link\r"
41expect {
42 timeout {puts "TESTING ERROR 2\n";exit}
43 "Error"
44}
45after 100
46
47# file
48#send -- "firejail --net=br0 --private-home=fscheck-file\r"
49#expect {
50# timeout {puts "TESTING ERROR 2.1\n";exit}
51# "Error"
52#}
53#after 100
54
55# ..
56send -- "firejail --net=br0 --private-home=../test/fscheck-file\r"
57expect {
58 timeout {puts "TESTING ERROR 2.2\n";exit}
59 "Error"
60}
61after 100
62
63# no dir
64send -- "firejail --net=br0 --private-home=../test/nodir\r"
65expect {
66 timeout {puts "TESTING ERROR 3\n";exit}
67 "Error"
68}
69after 100
70
71# no file
72send -- "firejail --net=br0 --private-home=../test/nofile\r"
73expect {
74 timeout {puts "TESTING ERROR 3.1\n";exit}
75 "Error"
76}
77after 100
78
79# same owner
80send -- "firejail --net=br0 --private=/etc\r"
81expect {
82 timeout {puts "TESTING ERROR 4\n";exit}
83 "Error"
84}
85after 100
86
87# same owner
88send -- "firejail --net=br0 --private=/etc/shadow\r"
89expect {
90 timeout {puts "TESTING ERROR 4\n";exit}
91 "Error"
92}
93after 100