diff options
author | root <root@debian> | 2016-01-25 14:58:27 -0500 |
---|---|---|
committer | root <root@debian> | 2016-01-25 14:58:27 -0500 |
commit | 678cd1495457318dad39178bb646ba1b96332ddb (patch) | |
tree | 45c5396447d0b42d1a6cd224b24c34ca5744c961 /test/option_tmpfs.exp | |
parent | testing (diff) | |
download | firejail-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-x | test/option_tmpfs.exp | 22 |
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 | } |
19 | expect { | 19 | expect { |
20 | timeout {puts "TESTING ERROR 2\n";exit} | 20 | timeout {puts "TESTING ERROR 2\n";exit} |
21 | "home" | 21 | "/root" |
22 | } | 22 | } |
23 | sleep 1 | 23 | sleep 1 |
24 | send -- "exit\r" | ||
25 | sleep 2 | ||
24 | 26 | ||
25 | puts "\n" | 27 | send -- "firejail --debug-check-filename --tmpfs=\"bla&&bla\"\r" |
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 13.1\n";exit} | ||
30 | "Checking filename bla&&bla" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 13.2\n";exit} | ||
34 | "Error:" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 13.3\n";exit} | ||
38 | "is an invalid filename" | ||
39 | } | ||
40 | after 100 | ||
41 | |||
42 | |||
43 | puts "\nalldone\n" | ||
26 | 44 | ||