diff options
author | netblue30 <netblue30@yahoo.com> | 2016-03-23 09:29:27 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-03-23 09:29:27 -0400 |
commit | 3eb4b71a6d62c30899e9d58379c2a5c5fa171b10 (patch) | |
tree | fffda8de35f7cc7b68cbae76b4365f796100f2ac /test/features | |
parent | hide firejail run time information (diff) | |
download | firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.gz firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.tar.zst firejail-3eb4b71a6d62c30899e9d58379c2a5c5fa171b10.zip |
testing
Diffstat (limited to 'test/features')
-rwxr-xr-x | test/features/1.8.exp | 90 | ||||
-rw-r--r-- | test/features/features.txt | 2 | ||||
-rwxr-xr-x | test/features/test.sh | 2 |
3 files changed, 92 insertions, 2 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp index d937f4f12..dd525df49 100755 --- a/test/features/1.8.exp +++ b/test/features/1.8.exp | |||
@@ -32,6 +32,36 @@ expect { | |||
32 | "Permission denied" | 32 | "Permission denied" |
33 | } | 33 | } |
34 | after 100 | 34 | after 100 |
35 | send -- "ls /run/firejail/bandwidth\r" | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
38 | "Permission denied" | ||
39 | } | ||
40 | after 100 | ||
41 | #send -- "ls /run/firejail/mnt\r" | ||
42 | #expect { | ||
43 | # timeout {puts "TESTING ERROR 1.3\n";exit} | ||
44 | # "Permission denied" | ||
45 | #} | ||
46 | #after 100 | ||
47 | send -- "ls /run/firejail/name\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
50 | "Permission denied" | ||
51 | } | ||
52 | after 100 | ||
53 | send -- "ls /run/firejail/network\r" | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
56 | "Permission denied" | ||
57 | } | ||
58 | after 100 | ||
59 | send -- "ls /run/firejail/x11\r" | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
62 | "Permission denied" | ||
63 | } | ||
64 | after 100 | ||
35 | send -- "exit\r" | 65 | send -- "exit\r" |
36 | sleep 1 | 66 | sleep 1 |
37 | 67 | ||
@@ -58,6 +88,36 @@ if { $overlay == "overlay" } { | |||
58 | "Permission denied" | 88 | "Permission denied" |
59 | } | 89 | } |
60 | after 100 | 90 | after 100 |
91 | send -- "ls /run/firejail/bandwidth\r" | ||
92 | expect { | ||
93 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
94 | "Permission denied" | ||
95 | } | ||
96 | after 100 | ||
97 | #send -- "ls /run/firejail/mnt\r" | ||
98 | #expect { | ||
99 | # timeout {puts "TESTING ERROR 3.3\n";exit} | ||
100 | # "Permission denied" | ||
101 | #} | ||
102 | #after 100 | ||
103 | send -- "ls /run/firejail/name\r" | ||
104 | expect { | ||
105 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
106 | "Permission denied" | ||
107 | } | ||
108 | after 100 | ||
109 | send -- "ls /run/firejail/network\r" | ||
110 | expect { | ||
111 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
112 | "Permission denied" | ||
113 | } | ||
114 | after 100 | ||
115 | send -- "ls /run/firejail/x11\r" | ||
116 | expect { | ||
117 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
118 | "Permission denied" | ||
119 | } | ||
120 | after 100 | ||
61 | 121 | ||
62 | send -- "exit\r" | 122 | send -- "exit\r" |
63 | sleep 1 | 123 | sleep 1 |
@@ -85,6 +145,36 @@ if { $chroot == "chroot" } { | |||
85 | "Permission denied" | 145 | "Permission denied" |
86 | } | 146 | } |
87 | after 100 | 147 | after 100 |
148 | send -- "ls /run/firejail/bandwidth\r" | ||
149 | expect { | ||
150 | timeout {puts "TESTING ERROR 5.2\n";exit} | ||
151 | "Permission denied" | ||
152 | } | ||
153 | after 100 | ||
154 | #send -- "ls /run/firejail/mnt\r" | ||
155 | #expect { | ||
156 | # timeout {puts "TESTING ERROR 5.3\n";exit} | ||
157 | # "Permission denied" | ||
158 | #} | ||
159 | #after 100 | ||
160 | send -- "ls /run/firejail/name\r" | ||
161 | expect { | ||
162 | timeout {puts "TESTING ERROR 5.4\n";exit} | ||
163 | "Permission denied" | ||
164 | } | ||
165 | after 100 | ||
166 | send -- "ls /run/firejail/network\r" | ||
167 | expect { | ||
168 | timeout {puts "TESTING ERROR 5.5\n";exit} | ||
169 | "Permission denied" | ||
170 | } | ||
171 | after 100 | ||
172 | send -- "ls /run/firejail/x11\r" | ||
173 | expect { | ||
174 | timeout {puts "TESTING ERROR 5.6\n";exit} | ||
175 | "Permission denied" | ||
176 | } | ||
177 | after 100 | ||
88 | send -- "exit\r" | 178 | send -- "exit\r" |
89 | sleep 1 | 179 | sleep 1 |
90 | } | 180 | } |
diff --git a/test/features/features.txt b/test/features/features.txt index 283e85d93..b793257c3 100644 --- a/test/features/features.txt +++ b/test/features/features.txt | |||
@@ -21,7 +21,7 @@ C - chroot filesystem | |||
21 | 1.5 PID namespace | 21 | 1.5 PID namespace |
22 | 1.6 new /var/log | 22 | 1.6 new /var/log |
23 | 1.7 new /var/tmp | 23 | 1.7 new /var/tmp |
24 | 1.8 disable /etc/firejail and ~/.config/firejail | 24 | 1.8 disable firejail config and run time information |
25 | 1.9 mount namespace | 25 | 1.9 mount namespace |
26 | 1.10 disable /selinux | 26 | 1.10 disable /selinux |
27 | 27 | ||
diff --git a/test/features/test.sh b/test/features/test.sh index 3570dae5a..f28da37d5 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -50,7 +50,7 @@ echo "TESTING: 1.6 new /var/log" | |||
50 | echo "TESTING: 1.7 new /var/tmp" | 50 | echo "TESTING: 1.7 new /var/tmp" |
51 | ./1.7.exp $OVERLAY $CHROOT | 51 | ./1.7.exp $OVERLAY $CHROOT |
52 | 52 | ||
53 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" | 53 | echo "TESTING: 1.8 disable firejail config and run time information" |
54 | ./1.8.exp $OVERLAY $CHROOT | 54 | ./1.8.exp $OVERLAY $CHROOT |
55 | 55 | ||
56 | echo "TESTING: 1.10 disable /selinux" | 56 | echo "TESTING: 1.10 disable /selinux" |