aboutsummaryrefslogtreecommitdiffstats
path: root/test/firemon-caps.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 16:16:51 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 16:16:51 -0400
commit7e1c057aeda3b598838cb66b9e827fc087f70c54 (patch)
tree6d13b82ed69f1d3a5b5973072e2b5cc3ea3eca16 /test/firemon-caps.exp
parenthexchat profile (diff)
downloadfirejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.gz
firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.tar.zst
firejail-7e1c057aeda3b598838cb66b9e827fc087f70c54.zip
make testing
Diffstat (limited to 'test/firemon-caps.exp')
-rwxr-xr-xtest/firemon-caps.exp126
1 files changed, 0 insertions, 126 deletions
diff --git a/test/firemon-caps.exp b/test/firemon-caps.exp
deleted file mode 100755
index 3dd6384db..000000000
--- a/test/firemon-caps.exp
+++ /dev/null
@@ -1,126 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --name=bingo1 --noprofile --caps\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14spawn $env(SHELL)
15send -- "firejail --name=bingo2 --noprofile\r"
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Child process initialized"
19}
20sleep 1
21
22spawn $env(SHELL)
23send -- "firejail --name=bingo3 --noprofile --caps.drop=all\r"
24expect {
25 timeout {puts "TESTING ERROR 2\n";exit}
26 "Child process initialized"
27}
28sleep 1
29
30spawn $env(SHELL)
31send -- "firejail --noprofile --name=bingo4 --caps.drop=chown,kill\r"
32expect {
33 timeout {puts "TESTING ERROR 3\n";exit}
34 "Child process initialized"
35}
36sleep 1
37
38spawn $env(SHELL)
39send -- "firejail --noprofile --name=bingo5 --caps.keep=chown,kill\r"
40expect {
41 timeout {puts "TESTING ERROR 4\n";exit}
42 "Child process initialized"
43}
44sleep 1
45
46spawn $env(SHELL)
47send -- "firejail --name=bingo6 --profile=caps1.profile\r"
48expect {
49 timeout {puts "TESTING ERROR 5\n";exit}
50 "Child process initialized"
51}
52sleep 1
53
54spawn $env(SHELL)
55send -- "firejail --name=bingo7 --profile=caps2.profile\r"
56expect {
57 timeout {puts "TESTING ERROR 0\n";exit}
58 "Child process initialized"
59}
60sleep 1
61
62spawn $env(SHELL)
63send -- "firemon --caps\r"
64expect {
65 timeout {puts "TESTING ERROR 8.1\n";exit}
66 "bingo1"
67}
68expect {
69 timeout {puts "TESTING ERROR 8.2\n";exit}
70 "31cffff"
71}
72expect {
73 timeout {puts "TESTING ERROR 8.3\n";exit}
74 "bingo2"
75}
76expect {
77 timeout {puts "TESTING ERROR 8.4\n";exit}
78 "fffffff"
79}
80expect {
81 timeout {puts "TESTING ERROR 8.5\n";exit}
82 "bingo3"
83}
84expect {
85 timeout {puts "TESTING ERROR 8.6\n";exit}
86 "000000000000"
87}
88
89expect {
90 timeout {puts "TESTING ERROR 8.7\n";exit}
91 "bingo4"
92}
93expect {
94 timeout {puts "TESTING ERROR 8.8\n";exit}
95 "ffffffde"
96}
97expect {
98 timeout {puts "TESTING ERROR 8.9\n";exit}
99 "bingo5"
100}
101expect {
102 timeout {puts "TESTING ERROR 8.10\n";exit}
103 "0000000000000021"
104}
105
106expect {
107 timeout {puts "TESTING ERROR 8.11\n";exit}
108 "bingo6"
109}
110expect {
111 timeout {puts "TESTING ERROR 8.12\n";exit}
112 "ffffffde"
113}
114expect {
115 timeout {puts "TESTING ERROR 8.13\n";exit}
116 "bingo7"
117}
118expect {
119 timeout {puts "TESTING ERROR 8.14\n";exit}
120 "0000000000000021"
121}
122
123after 100
124
125puts "all done\n"
126