aboutsummaryrefslogtreecommitdiffstats
path: root/test/option_tmpfs.exp
diff options
context:
space:
mode:
authorLibravatar root <root@debian>2016-01-25 14:58:27 -0500
committerLibravatar root <root@debian>2016-01-25 14:58:27 -0500
commit678cd1495457318dad39178bb646ba1b96332ddb (patch)
tree45c5396447d0b42d1a6cd224b24c34ca5744c961 /test/option_tmpfs.exp
parenttesting (diff)
downloadfirejail-678cd1495457318dad39178bb646ba1b96332ddb.tar.gz
firejail-678cd1495457318dad39178bb646ba1b96332ddb.tar.zst
firejail-678cd1495457318dad39178bb646ba1b96332ddb.zip
--tmpfs allowd only as root user
Diffstat (limited to 'test/option_tmpfs.exp')
-rwxr-xr-xtest/option_tmpfs.exp22
1 files changed, 20 insertions, 2 deletions
diff --git a/test/option_tmpfs.exp b/test/option_tmpfs.exp
index 1ff47ab13..6522ef2d3 100755
--- a/test/option_tmpfs.exp
+++ b/test/option_tmpfs.exp
@@ -18,9 +18,27 @@ expect {
18} 18}
19expect { 19expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 20 timeout {puts "TESTING ERROR 2\n";exit}
21 "home" 21 "/root"
22} 22}
23sleep 1 23sleep 1
24send -- "exit\r"
25sleep 2
24 26
25puts "\n" 27send -- "firejail --debug-check-filename --tmpfs=\"bla&&bla\"\r"
28expect {
29 timeout {puts "TESTING ERROR 13.1\n";exit}
30 "Checking filename bla&&bla"
31}
32expect {
33 timeout {puts "TESTING ERROR 13.2\n";exit}
34 "Error:"
35}
36expect {
37 timeout {puts "TESTING ERROR 13.3\n";exit}
38 "is an invalid filename"
39}
40after 100
41
42
43puts "\nalldone\n"
26 44