aboutsummaryrefslogtreecommitdiffstats
path: root/test/seccomp-extra/protocol.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-09 08:39:25 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-03-09 08:39:25 -0500
commitc79aa14295f907ffac0cf5555515602b7393b8b6 (patch)
tree87a114af4e12388e09e2d16d518b50be9ddbe0a6 /test/seccomp-extra/protocol.exp
parenttesting (diff)
downloadfirejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.gz
firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.zst
firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.zip
testing
Diffstat (limited to 'test/seccomp-extra/protocol.exp')
-rwxr-xr-xtest/seccomp-extra/protocol.exp87
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --noprofile --protocol=unix --debug pwd\r"
11expect {
12 timeout {puts "TESTING ERROR 1\n";exit}
13 "0009: 20 00 00 00000000"
14}
15expect {
16 timeout {puts "TESTING ERROR 2\n";exit}
17 "000f: 20 00 00 00000010"
18}
19expect {
20 timeout {puts "TESTING ERROR 3\n";exit}
21 "0010: 15 00 01 00000001"
22}
23expect {
24 timeout {puts "TESTING ERROR 4\n";exit}
25 "0011: 06 00 00 7fff0000"
26}
27expect {
28 timeout {puts "TESTING ERROR 5\n";exit}
29 "0012: 06 00 00 0005005f"
30}
31
32after 500
33
34send -- "firejail --noprofile --protocol=bluetooth --debug pwd\r"
35expect {
36 timeout {puts "TESTING ERROR 11\n";exit}
37 "0009: 20 00 00 00000000"
38}
39expect {
40 timeout {puts "TESTING ERROR 12\n";exit}
41 "000f: 20 00 00 00000010"
42}
43expect {
44 timeout {puts "TESTING ERROR 13\n";exit}
45 "0010: 15 00 01 0000001f"
46}
47expect {
48 timeout {puts "TESTING ERROR 14\n";exit}
49 "0011: 06 00 00 7fff0000"
50}
51expect {
52 timeout {puts "TESTING ERROR1 5\n";exit}
53 "0012: 06 00 00 0005005f"
54}
55after 500
56
57send -- "firejail --noprofile --protocol=inet,inet6 --debug pwd\r"
58expect {
59 timeout {puts "TESTING ERROR 31\n";exit}
60 "0009: 20 00 00 00000000"
61}
62expect {
63 timeout {puts "TESTING ERROR 32\n";exit}
64 "000f: 20 00 00 00000010"
65}
66expect {
67 timeout {puts "TESTING ERROR 33\n";exit}
68 "0010: 15 00 01 00000002"
69}
70expect {
71 timeout {puts "TESTING ERROR 34\n";exit}
72 "0011: 06 00 00 7fff0000"
73}
74expect {
75 timeout {puts "TESTING ERROR1 35\n";exit}
76 "0012: 15 00 01 0000000a"
77}
78expect {
79 timeout {puts "TESTING ERROR 36\n";exit}
80 "0013: 06 00 00 7fff0000"
81}
82expect {
83 timeout {puts "TESTING ERROR 37\n";exit}
84 "0014: 06 00 00 0005005f"
85}
86after 500
87puts "\nall done\n"