aboutsummaryrefslogtreecommitdiffstats
path: root/test/private-keep.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-28 10:34:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-28 10:34:38 -0400
commit01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2 (patch)
tree73ca26789e3aabe3f1bf0f4a8d6c87b7f0f923bc /test/private-keep.exp
parentfixed thunderbird profile to allow a browser to start (diff)
downloadfirejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.gz
firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.tar.zst
firejail-01194ad1e5f38e929cb7fbbbdc4ec0ee92b8b1f2.zip
testing default.profile
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-xtest/private-keep.exp38
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)
5match_max 100000 5match_max 100000
6 6
7#************************************************************** 7#**************************************************************
8send -- "firejail --private-home=.mozilla,.config/firejail\r" 8send -- "firejail --noprofile --private-home=.mozilla,.config/firejail\r"
9expect { 9expect {
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#**************************************************************
76send -- "firejail --private-home=~/.mozilla,~/.config/firejail\r" 76send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r"
77expect { 77expect {
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#**************************************************************
110send -- "firejail --private-home=~/.mozilla,~/.config/firejail\r" 110send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r"
111expect { 111expect {
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}
115sleep 1 115sleep 1
116 116
117send -- "ls -al\r" 117send -- "ls -al\r"
118expect { 118expect {
119 timeout {puts "TESTING ERROR 2.1\n";exit} 119 timeout {puts "TESTING ERROR 3.1\n";exit}
120 ".config" 120 ".config"
121} 121}
122expect { 122expect {
123 timeout {puts "TESTING ERROR 2.2\n";exit} 123 timeout {puts "TESTING ERROR 3.2\n";exit}
124 ".mozilla" 124 ".mozilla"
125} 125}
126sleep 1 126sleep 1
127 127
128send -- "find .config\r" 128send -- "find .config\r"
129expect { 129expect {
130 timeout {puts "TESTING ERROR 2.3\n";exit} 130 timeout {puts "TESTING ERROR 3.3\n";exit}
131 ".config" 131 ".config"
132} 132}
133expect { 133expect {
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}
137sleep 1 137sleep 1
@@ -140,31 +140,31 @@ send -- "exit\r"
140sleep 2 140sleep 2
141 141
142#************************************************************** 142#**************************************************************
143send -- "firejail --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r" 143send -- "firejail --noprofile --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r"
144expect { 144expect {
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}
148sleep 1 148sleep 1
149 149
150send -- "ls -al\r" 150send -- "ls -al\r"
151expect { 151expect {
152 timeout {puts "TESTING ERROR 3.1\n";exit} 152 timeout {puts "TESTING ERROR 4.1\n";exit}
153 ".config" 153 ".config"
154} 154}
155expect { 155expect {
156 timeout {puts "TESTING ERROR 3.2\n";exit} 156 timeout {puts "TESTING ERROR 4.2\n";exit}
157 ".mozilla" 157 ".mozilla"
158} 158}
159sleep 1 159sleep 1
160 160
161send -- "find .config\r" 161send -- "find .config\r"
162expect { 162expect {
163 timeout {puts "TESTING ERROR 3.3\n";exit} 163 timeout {puts "TESTING ERROR 4.3\n";exit}
164 ".config" 164 ".config"
165} 165}
166expect { 166expect {
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}
170sleep 1 170sleep 1
@@ -173,18 +173,20 @@ send -- "exit\r"
173sleep 2 173sleep 2
174 174
175#************************************************************** 175#**************************************************************
176send -- "firejail --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r" 176send -- "firejail --noprofile --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r"
177expect { 177expect {
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}
181sleep 1 181sleep 1
182 182
183#************************************************************** 183#**************************************************************
184send -- "firejail --private-home=/root\r" 184send -- "firejail --noprofile --private-home=/root\r"
185expect { 185expect {
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}
189sleep 1 189sleep 1
190 190
191puts "all done\n"
192