diff options
author | netblue30 <netblue30@yahoo.com> | 2016-02-02 08:44:40 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-02-02 08:44:40 -0500 |
commit | e7486b39795847043cd16c55a1c8142770c77de8 (patch) | |
tree | d0f11ceffdbfde9c792ab856016d4219acfc21b2 /test/private-keep.exp | |
parent | 0.9.38 testing (diff) | |
download | firejail-e7486b39795847043cd16c55a1c8142770c77de8.tar.gz firejail-e7486b39795847043cd16c55a1c8142770c77de8.tar.zst firejail-e7486b39795847043cd16c55a1c8142770c77de8.zip |
0.9.38 testing
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-x | test/private-keep.exp | 192 |
1 files changed, 0 insertions, 192 deletions
diff --git a/test/private-keep.exp b/test/private-keep.exp deleted file mode 100755 index 163aa2741..000000000 --- a/test/private-keep.exp +++ /dev/null | |||
@@ -1,192 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | #************************************************************** | ||
8 | send -- "firejail --noprofile --private-home=.mozilla,.config/firejail\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 0\n";exit} | ||
11 | "Child process initialized" | ||
12 | } | ||
13 | sleep 1 | ||
14 | |||
15 | send -- "ls -al\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 0.1\n";exit} | ||
18 | ".config" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 0.2\n";exit} | ||
22 | ".mozilla" | ||
23 | } | ||
24 | sleep 1 | ||
25 | |||
26 | send -- "find .config\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 0.3\n";exit} | ||
29 | ".config" | ||
30 | } | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 0.4\n";exit} | ||
33 | ".config/firejail" | ||
34 | } | ||
35 | sleep 1 | ||
36 | puts "\n" | ||
37 | send -- "exit\r" | ||
38 | sleep 2 | ||
39 | |||
40 | |||
41 | #************************************************************** | ||
42 | send -- "firejail --profile=private-keep.profile\r" | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 1.0\n";exit} | ||
45 | "Child process initialized" | ||
46 | } | ||
47 | sleep 1 | ||
48 | |||
49 | send -- "ls -al\r" | ||
50 | expect { | ||
51 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
52 | ".config" | ||
53 | } | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
56 | ".mozilla" | ||
57 | } | ||
58 | sleep 1 | ||
59 | |||
60 | send -- "find .config\r" | ||
61 | expect { | ||
62 | timeout {puts "TESTING ERROR 1.3\n";exit} | ||
63 | ".config" | ||
64 | } | ||
65 | expect { | ||
66 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
67 | ".config/firejail" | ||
68 | } | ||
69 | sleep 1 | ||
70 | puts "\n" | ||
71 | send -- "exit\r" | ||
72 | sleep 2 | ||
73 | |||
74 | |||
75 | #************************************************************** | ||
76 | send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r" | ||
77 | expect { | ||
78 | timeout {puts "TESTING ERROR 2\n";exit} | ||
79 | "Child process initialized" | ||
80 | } | ||
81 | sleep 1 | ||
82 | |||
83 | send -- "ls -al\r" | ||
84 | expect { | ||
85 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
86 | ".config" | ||
87 | } | ||
88 | expect { | ||
89 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
90 | ".mozilla" | ||
91 | } | ||
92 | sleep 1 | ||
93 | |||
94 | send -- "find .config\r" | ||
95 | expect { | ||
96 | timeout {puts "TESTING ERROR 2.3\n";exit} | ||
97 | ".config" | ||
98 | } | ||
99 | expect { | ||
100 | timeout {puts "TESTING ERROR 2.4\n";exit} | ||
101 | ".config/firejail" | ||
102 | } | ||
103 | sleep 1 | ||
104 | puts "\n" | ||
105 | send -- "exit\r" | ||
106 | sleep 2 | ||
107 | |||
108 | |||
109 | #************************************************************** | ||
110 | send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r" | ||
111 | expect { | ||
112 | timeout {puts "TESTING ERROR 3\n";exit} | ||
113 | "Child process initialized" | ||
114 | } | ||
115 | sleep 1 | ||
116 | |||
117 | send -- "ls -al\r" | ||
118 | expect { | ||
119 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
120 | ".config" | ||
121 | } | ||
122 | expect { | ||
123 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
124 | ".mozilla" | ||
125 | } | ||
126 | sleep 1 | ||
127 | |||
128 | send -- "find .config\r" | ||
129 | expect { | ||
130 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
131 | ".config" | ||
132 | } | ||
133 | expect { | ||
134 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
135 | ".config/firejail" | ||
136 | } | ||
137 | sleep 1 | ||
138 | puts "\n" | ||
139 | send -- "exit\r" | ||
140 | sleep 2 | ||
141 | |||
142 | #************************************************************** | ||
143 | send -- "firejail --noprofile --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r" | ||
144 | expect { | ||
145 | timeout {puts "TESTING ERROR 4\n";exit} | ||
146 | "Child process initialized" | ||
147 | } | ||
148 | sleep 1 | ||
149 | |||
150 | send -- "ls -al\r" | ||
151 | expect { | ||
152 | timeout {puts "TESTING ERROR 4.1\n";exit} | ||
153 | ".config" | ||
154 | } | ||
155 | expect { | ||
156 | timeout {puts "TESTING ERROR 4.2\n";exit} | ||
157 | ".mozilla" | ||
158 | } | ||
159 | sleep 1 | ||
160 | |||
161 | send -- "find .config\r" | ||
162 | expect { | ||
163 | timeout {puts "TESTING ERROR 4.3\n";exit} | ||
164 | ".config" | ||
165 | } | ||
166 | expect { | ||
167 | timeout {puts "TESTING ERROR 4.4\n";exit} | ||
168 | ".config/firejail" | ||
169 | } | ||
170 | sleep 1 | ||
171 | puts "\n" | ||
172 | send -- "exit\r" | ||
173 | sleep 2 | ||
174 | |||
175 | #************************************************************** | ||
176 | send -- "firejail --noprofile --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r" | ||
177 | expect { | ||
178 | timeout {puts "TESTING ERROR 5\n";exit} | ||
179 | "Error: invalid private-home list" | ||
180 | } | ||
181 | sleep 1 | ||
182 | |||
183 | #************************************************************** | ||
184 | send -- "firejail --noprofile --private-home=/root\r" | ||
185 | expect { | ||
186 | timeout {puts "TESTING ERROR 6\n";exit} | ||
187 | "Error: only files or directories created by the current user are allowed" | ||
188 | } | ||
189 | sleep 1 | ||
190 | |||
191 | puts "all done\n" | ||
192 | |||