diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-28 10:34:38 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-28 10:34:38 -0400 |
commit | 01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2 (patch) | |
tree | 73ca26789e3aabe3f1bf0f4a8d6c87b7f0f923bc /test/private-keep.exp | |
parent | fixed thunderbird profile to allow a browser to start (diff) | |
download | firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.gz firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.zst firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.zip |
testing default.profile
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-x | test/private-keep.exp | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/test/private-keep.exp b/test/private-keep.exp index 027020ce9..163aa2741 100755 --- a/test/private-keep.exp +++ b/test/private-keep.exp | |||
@@ -5,7 +5,7 @@ spawn $env(SHELL) | |||
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | #************************************************************** | 7 | #************************************************************** |
8 | send -- "firejail --private-home=.mozilla,.config/firejail\r" | 8 | send -- "firejail --noprofile --private-home=.mozilla,.config/firejail\r" |
9 | expect { | 9 | expect { |
10 | timeout {puts "TESTING ERROR 0\n";exit} | 10 | timeout {puts "TESTING ERROR 0\n";exit} |
11 | "Child process initialized" | 11 | "Child process initialized" |
@@ -73,7 +73,7 @@ sleep 2 | |||
73 | 73 | ||
74 | 74 | ||
75 | #************************************************************** | 75 | #************************************************************** |
76 | send -- "firejail --private-home=~/.mozilla,~/.config/firejail\r" | 76 | send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r" |
77 | expect { | 77 | expect { |
78 | timeout {puts "TESTING ERROR 2\n";exit} | 78 | timeout {puts "TESTING ERROR 2\n";exit} |
79 | "Child process initialized" | 79 | "Child process initialized" |
@@ -107,31 +107,31 @@ sleep 2 | |||
107 | 107 | ||
108 | 108 | ||
109 | #************************************************************** | 109 | #************************************************************** |
110 | send -- "firejail --private-home=~/.mozilla,~/.config/firejail\r" | 110 | send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r" |
111 | expect { | 111 | expect { |
112 | timeout {puts "TESTING ERROR 2\n";exit} | 112 | timeout {puts "TESTING ERROR 3\n";exit} |
113 | "Child process initialized" | 113 | "Child process initialized" |
114 | } | 114 | } |
115 | sleep 1 | 115 | sleep 1 |
116 | 116 | ||
117 | send -- "ls -al\r" | 117 | send -- "ls -al\r" |
118 | expect { | 118 | expect { |
119 | timeout {puts "TESTING ERROR 2.1\n";exit} | 119 | timeout {puts "TESTING ERROR 3.1\n";exit} |
120 | ".config" | 120 | ".config" |
121 | } | 121 | } |
122 | expect { | 122 | expect { |
123 | timeout {puts "TESTING ERROR 2.2\n";exit} | 123 | timeout {puts "TESTING ERROR 3.2\n";exit} |
124 | ".mozilla" | 124 | ".mozilla" |
125 | } | 125 | } |
126 | sleep 1 | 126 | sleep 1 |
127 | 127 | ||
128 | send -- "find .config\r" | 128 | send -- "find .config\r" |
129 | expect { | 129 | expect { |
130 | timeout {puts "TESTING ERROR 2.3\n";exit} | 130 | timeout {puts "TESTING ERROR 3.3\n";exit} |
131 | ".config" | 131 | ".config" |
132 | } | 132 | } |
133 | expect { | 133 | expect { |
134 | timeout {puts "TESTING ERROR 2.4\n";exit} | 134 | timeout {puts "TESTING ERROR 3.4\n";exit} |
135 | ".config/firejail" | 135 | ".config/firejail" |
136 | } | 136 | } |
137 | sleep 1 | 137 | sleep 1 |
@@ -140,31 +140,31 @@ send -- "exit\r" | |||
140 | sleep 2 | 140 | sleep 2 |
141 | 141 | ||
142 | #************************************************************** | 142 | #************************************************************** |
143 | send -- "firejail --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r" | 143 | send -- "firejail --noprofile --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r" |
144 | expect { | 144 | expect { |
145 | timeout {puts "TESTING ERROR 3\n";exit} | 145 | timeout {puts "TESTING ERROR 4\n";exit} |
146 | "Child process initialized" | 146 | "Child process initialized" |
147 | } | 147 | } |
148 | sleep 1 | 148 | sleep 1 |
149 | 149 | ||
150 | send -- "ls -al\r" | 150 | send -- "ls -al\r" |
151 | expect { | 151 | expect { |
152 | timeout {puts "TESTING ERROR 3.1\n";exit} | 152 | timeout {puts "TESTING ERROR 4.1\n";exit} |
153 | ".config" | 153 | ".config" |
154 | } | 154 | } |
155 | expect { | 155 | expect { |
156 | timeout {puts "TESTING ERROR 3.2\n";exit} | 156 | timeout {puts "TESTING ERROR 4.2\n";exit} |
157 | ".mozilla" | 157 | ".mozilla" |
158 | } | 158 | } |
159 | sleep 1 | 159 | sleep 1 |
160 | 160 | ||
161 | send -- "find .config\r" | 161 | send -- "find .config\r" |
162 | expect { | 162 | expect { |
163 | timeout {puts "TESTING ERROR 3.3\n";exit} | 163 | timeout {puts "TESTING ERROR 4.3\n";exit} |
164 | ".config" | 164 | ".config" |
165 | } | 165 | } |
166 | expect { | 166 | expect { |
167 | timeout {puts "TESTING ERROR 3.4\n";exit} | 167 | timeout {puts "TESTING ERROR 4.4\n";exit} |
168 | ".config/firejail" | 168 | ".config/firejail" |
169 | } | 169 | } |
170 | sleep 1 | 170 | sleep 1 |
@@ -173,18 +173,20 @@ send -- "exit\r" | |||
173 | sleep 2 | 173 | sleep 2 |
174 | 174 | ||
175 | #************************************************************** | 175 | #************************************************************** |
176 | send -- "firejail --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r" | 176 | send -- "firejail --noprofile --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r" |
177 | expect { | 177 | expect { |
178 | timeout {puts "TESTING ERROR 4\n";exit} | 178 | timeout {puts "TESTING ERROR 5\n";exit} |
179 | "Error: invalid private-home list" | 179 | "Error: invalid private-home list" |
180 | } | 180 | } |
181 | sleep 1 | 181 | sleep 1 |
182 | 182 | ||
183 | #************************************************************** | 183 | #************************************************************** |
184 | send -- "firejail --private-home=/root\r" | 184 | send -- "firejail --noprofile --private-home=/root\r" |
185 | expect { | 185 | expect { |
186 | timeout {puts "TESTING ERROR 5\n";exit} | 186 | timeout {puts "TESTING ERROR 6\n";exit} |
187 | "Error: only files or directories created by the current user are allowed" | 187 | "Error: only files or directories created by the current user are allowed" |
188 | } | 188 | } |
189 | sleep 1 | 189 | sleep 1 |
190 | 190 | ||
191 | puts "all done\n" | ||
192 | |||