diff options
author | 2023-03-09 08:39:25 -0500 | |
---|---|---|
committer | 2023-03-09 08:39:25 -0500 | |
commit | c79aa14295f907ffac0cf5555515602b7393b8b6 (patch) | |
tree | 87a114af4e12388e09e2d16d518b50be9ddbe0a6 /test/seccomp-extra/protocol.exp | |
parent | testing (diff) | |
download | firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.gz firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.zst firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.zip |
testing
Diffstat (limited to 'test/seccomp-extra/protocol.exp')
-rwxr-xr-x | test/seccomp-extra/protocol.exp | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/test/seccomp-extra/protocol.exp b/test/seccomp-extra/protocol.exp new file mode 100755 index 000000000..5844e1de3 --- /dev/null +++ b/test/seccomp-extra/protocol.exp | |||
@@ -0,0 +1,87 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --noprofile --protocol=unix --debug pwd\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 1\n";exit} | ||
13 | "0009: 20 00 00 00000000" | ||
14 | } | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "000f: 20 00 00 00000010" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 3\n";exit} | ||
21 | "0010: 15 00 01 00000001" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 4\n";exit} | ||
25 | "0011: 06 00 00 7fff0000" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 5\n";exit} | ||
29 | "0012: 06 00 00 0005005f" | ||
30 | } | ||
31 | |||
32 | after 500 | ||
33 | |||
34 | send -- "firejail --noprofile --protocol=bluetooth --debug pwd\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 11\n";exit} | ||
37 | "0009: 20 00 00 00000000" | ||
38 | } | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 12\n";exit} | ||
41 | "000f: 20 00 00 00000010" | ||
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 13\n";exit} | ||
45 | "0010: 15 00 01 0000001f" | ||
46 | } | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 14\n";exit} | ||
49 | "0011: 06 00 00 7fff0000" | ||
50 | } | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR1 5\n";exit} | ||
53 | "0012: 06 00 00 0005005f" | ||
54 | } | ||
55 | after 500 | ||
56 | |||
57 | send -- "firejail --noprofile --protocol=inet,inet6 --debug pwd\r" | ||
58 | expect { | ||
59 | timeout {puts "TESTING ERROR 31\n";exit} | ||
60 | "0009: 20 00 00 00000000" | ||
61 | } | ||
62 | expect { | ||
63 | timeout {puts "TESTING ERROR 32\n";exit} | ||
64 | "000f: 20 00 00 00000010" | ||
65 | } | ||
66 | expect { | ||
67 | timeout {puts "TESTING ERROR 33\n";exit} | ||
68 | "0010: 15 00 01 00000002" | ||
69 | } | ||
70 | expect { | ||
71 | timeout {puts "TESTING ERROR 34\n";exit} | ||
72 | "0011: 06 00 00 7fff0000" | ||
73 | } | ||
74 | expect { | ||
75 | timeout {puts "TESTING ERROR1 35\n";exit} | ||
76 | "0012: 15 00 01 0000000a" | ||
77 | } | ||
78 | expect { | ||
79 | timeout {puts "TESTING ERROR 36\n";exit} | ||
80 | "0013: 06 00 00 7fff0000" | ||
81 | } | ||
82 | expect { | ||
83 | timeout {puts "TESTING ERROR 37\n";exit} | ||
84 | "0014: 06 00 00 0005005f" | ||
85 | } | ||
86 | after 500 | ||
87 | puts "\nall done\n" | ||