diff options
author | 2016-05-05 10:22:18 -0400 | |
---|---|---|
committer | 2016-05-05 10:22:18 -0400 | |
commit | 37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch) | |
tree | 5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/private-bin.exp | |
parent | rename generic.profile as default.profile (diff) | |
download | firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip |
testing
Diffstat (limited to 'test/private-bin.exp')
-rwxr-xr-x | test/private-bin.exp | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/test/private-bin.exp b/test/private-bin.exp deleted file mode 100755 index a82d2b213..000000000 --- a/test/private-bin.exp +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --private-bin=bash,ls,sh\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 1\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "ls /bin\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "bash" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 3\n";exit} | ||
21 | "ls" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 4\n";exit} | ||
25 | "sh" | ||
26 | } | ||
27 | |||
28 | send -- "ls /bin\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 5\n";exit} | ||
31 | "ping" {puts "TESTING ERROR 6\n";exit} | ||
32 | "sh" | ||
33 | } | ||
34 | send -- "exit\r" | ||
35 | sleep 1 | ||
36 | |||
37 | send -- "firejail --profile=private-bin.profile\r" | ||
38 | expect { | ||
39 | timeout {puts "TESTING ERROR 7\n";exit} | ||
40 | "Child process initialized" | ||
41 | } | ||
42 | sleep 1 | ||
43 | |||
44 | send -- "ls /bin\r" | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 8\n";exit} | ||
47 | "bash" | ||
48 | } | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 9\n";exit} | ||
51 | "ls" | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 10\n";exit} | ||
55 | "sh" | ||
56 | } | ||
57 | |||
58 | send -- "ls /bin\r" | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 5\n";exit} | ||
61 | "ping" {puts "TESTING ERROR 6\n";exit} | ||
62 | "sh" | ||
63 | } | ||
64 | send -- "exit\r" | ||
65 | |||
66 | |||
67 | |||
68 | |||
69 | sleep 1 | ||
70 | puts "\nall done\n" | ||
71 | |||