diff options
author | netblue30 <netblue30@yahoo.com> | 2015-12-23 16:42:58 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-12-23 16:42:58 -0500 |
commit | dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 (patch) | |
tree | 144fba235fec87d74deff110aaa71891174b3eef /test/features/test.sh | |
parent | 0.9.36 testing (diff) | |
download | firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.gz firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.zst firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.zip |
0.9.36 testing
Diffstat (limited to 'test/features/test.sh')
-rwxr-xr-x | test/features/test.sh | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/test/features/test.sh b/test/features/test.sh index b600cec31..c3a4f21ae 100755 --- a/test/features/test.sh +++ b/test/features/test.sh | |||
@@ -1,13 +1,17 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | OVERLAY="overlay" | 2 | OVERLAY="overlay" |
3 | CHROOT="chroot" | ||
3 | 4 | ||
4 | while [ $# -gt 0 ]; do # Until you run out of parameters . . . | 5 | while [ $# -gt 0 ]; do # Until you run out of parameters . . . |
5 | case "$1" in | 6 | case "$1" in |
6 | --nooverlay) | 7 | --nooverlay) |
7 | OVERLAY="" | 8 | OVERLAY="none" |
9 | ;; | ||
10 | --nochroot) | ||
11 | CHROOT="none" | ||
8 | ;; | 12 | ;; |
9 | --help) | 13 | --help) |
10 | echo "./test.sh [--nooverlay|--help] | grep TESTING" | 14 | echo "./test.sh [--nooverlay|--nochroot|--help] | grep TESTING" |
11 | exit | 15 | exit |
12 | ;; | 16 | ;; |
13 | esac | 17 | esac |
@@ -21,59 +25,66 @@ done | |||
21 | # Feature testing | 25 | # Feature testing |
22 | # | 26 | # |
23 | 27 | ||
28 | #################### | ||
24 | # Default features | 29 | # Default features |
30 | #################### | ||
25 | echo "TESTING: 1.1 disable /boot" | 31 | echo "TESTING: 1.1 disable /boot" |
26 | ./1.1.exp $OVERLAY | 32 | ./1.1.exp $OVERLAY $CHROOT |
27 | 33 | ||
28 | echo "TESTING: 1.2 new /proc" | 34 | echo "TESTING: 1.2 new /proc" |
29 | ./1.2.exp $OVERLAY | 35 | ./1.2.exp $OVERLAY $CHROOT |
30 | 36 | ||
31 | echo "TESTING: 1.4 mask other users" | 37 | echo "TESTING: 1.4 mask other users" |
32 | ./1.4.exp $OVERLAY | 38 | ./1.4.exp $OVERLAY $CHROOT |
33 | 39 | ||
34 | echo "TESTING: 1.5 PID namespace" | 40 | echo "TESTING: 1.5 PID namespace" |
35 | ./1.5.exp $OVERLAY | 41 | ./1.5.exp $OVERLAY $CHROOT |
36 | 42 | ||
37 | echo "TESTING: 1.6 new /var/log" | 43 | echo "TESTING: 1.6 new /var/log" |
38 | ./1.6.exp $OVERLAY | 44 | ./1.6.exp $OVERLAY $CHROOT |
39 | 45 | ||
40 | echo "TESTING: 1.7 new /var/tmp" | 46 | echo "TESTING: 1.7 new /var/tmp" |
41 | ./1.7.exp $OVERLAY | 47 | ./1.7.exp $OVERLAY $CHROOT |
42 | 48 | ||
43 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" | 49 | echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" |
44 | ./1.8.exp $OVERLAY | 50 | ./1.8.exp $OVERLAY $CHROOT |
45 | 51 | ||
46 | echo "TESTING: 1.10 disable /selinux" | 52 | echo "TESTING: 1.10 disable /selinux" |
47 | ./1.10.exp $OVERLAY | 53 | ./1.10.exp $OVERLAY $CHROOT |
48 | 54 | ||
55 | #################### | ||
49 | # networking features | 56 | # networking features |
57 | #################### | ||
50 | echo "TESTING: 2.1 hostname" | 58 | echo "TESTING: 2.1 hostname" |
51 | ./2.1.exp $OVERLAY | 59 | ./2.1.exp $OVERLAY $CHROOT |
52 | 60 | ||
53 | echo "TESTING: 2.2 DNS" | 61 | echo "TESTING: 2.2 DNS" |
54 | ./2.2.exp $OVERLAY | 62 | ./2.2.exp $OVERLAY $CHROOT |
55 | 63 | ||
56 | echo "TESTING: 2.3 mac-vlan" | 64 | echo "TESTING: 2.3 mac-vlan" |
57 | ./2.3.exp $OVERLAY | 65 | ./2.3.exp $OVERLAY $CHROOT |
58 | 66 | ||
59 | echo "TESTING: 2.4 bridge" | 67 | echo "TESTING: 2.4 bridge" |
60 | ./2.4.exp $OVERLAY | 68 | ./2.4.exp $OVERLAY $CHROOT |
61 | 69 | ||
62 | echo "TESTING: 2.5 interface" | 70 | echo "TESTING: 2.5 interface" |
63 | ./2.5.exp $OVERLAY | 71 | ./2.5.exp $OVERLAY $CHROOT |
64 | 72 | ||
65 | echo "TESTING: 2.6 Default gateway" | 73 | echo "TESTING: 2.6 Default gateway" |
66 | ./2.6.exp $OVERLAY | 74 | ./2.6.exp $OVERLAY $CHROOT |
67 | 75 | ||
76 | #################### | ||
77 | # filesystem features | ||
78 | #################### | ||
68 | echo "TESTING: 3.1 tmpfs" | 79 | echo "TESTING: 3.1 tmpfs" |
69 | ./3.1.exp $OVERLAY | 80 | ./3.1.exp $OVERLAY $CHROOT |
70 | 81 | ||
71 | echo "TESTING: 3.2 read-only" | 82 | echo "TESTING: 3.2 read-only" |
72 | ./3.2.exp $OVERLAY | 83 | ./3.2.exp $OVERLAY $CHROOT |
73 | 84 | ||
74 | echo "TESTING: 3.3 blacklist" | 85 | echo "TESTING: 3.3 blacklist" |
75 | ./3.3.exp $OVERLAY | 86 | ./3.3.exp $OVERLAY $CHROOT |
76 | 87 | ||
77 | echo "TESTING: 3.4 whitelist" | 88 | echo "TESTING: 3.4 whitelist" |
78 | ./3.4.exp $OVERLAY | 89 | ./3.4.exp $OVERLAY $CHROOT |
79 | 90 | ||