diff options
author | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-02-28 09:51:26 -0500 |
commit | 27c4d069f322fbeca07c88e0e96208233103a5db (patch) | |
tree | fb4b4fdc75eb5e633ab55b8228a60f54176446a0 /test/features/test.sh | |
parent | fix cppcheck/scan-build problems (diff) | |
download | firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.gz firejail-27c4d069f322fbeca07c88e0e96208233103a5db.tar.zst firejail-27c4d069f322fbeca07c88e0e96208233103a5db.zip |
chroot testing
Diffstat (limited to 'test/features/test.sh')
-rwxr-xr-x | test/features/test.sh | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/test/features/test.sh b/test/features/test.sh deleted file mode 100755 index b3e29bc28..000000000 --- a/test/features/test.sh +++ /dev/null | |||
@@ -1,119 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2023 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | export LC_ALL=C | ||
7 | OVERLAY="overlay" | ||
8 | CHROOT="chroot" | ||
9 | NETWORK="network" | ||
10 | |||
11 | while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . | ||
12 | case "$1" in | ||
13 | --nooverlay) | ||
14 | OVERLAY="none" | ||
15 | ;; | ||
16 | --nochroot) | ||
17 | CHROOT="none" | ||
18 | ;; | ||
19 | --nonetwork) | ||
20 | NETWORK="none" | ||
21 | ;; | ||
22 | --help) | ||
23 | echo "./test.sh [--nooverlay|--nochroot|--nonetwork|--help] | grep TESTING" | ||
24 | exit | ||
25 | ;; | ||
26 | esac | ||
27 | shift # Check next set of parameters. | ||
28 | done | ||
29 | |||
30 | # | ||
31 | # Feature testing | ||
32 | # | ||
33 | |||
34 | #################### | ||
35 | # Default features | ||
36 | #################### | ||
37 | echo "TESTING: 1.1 disable /boot" | ||
38 | ./1.1.exp "$OVERLAY" "$CHROOT" | ||
39 | |||
40 | echo "TESTING: 1.2 new /proc" | ||
41 | ./1.2.exp "$OVERLAY" "$CHROOT" | ||
42 | |||
43 | echo "TESTING: 1.4 mask other users" | ||
44 | ./1.4.exp "$OVERLAY" "$CHROOT" | ||
45 | |||
46 | echo "TESTING: 1.5 PID namespace" | ||
47 | ./1.5.exp "$OVERLAY" "$CHROOT" | ||
48 | |||
49 | echo "TESTING: 1.6 new /var/log" | ||
50 | ./1.6.exp "$OVERLAY" "$CHROOT" | ||
51 | |||
52 | echo "TESTING: 1.7 new /var/tmp" | ||
53 | ./1.7.exp "$OVERLAY" "$CHROOT" | ||
54 | |||
55 | echo "TESTING: 1.8 disable firejail config and run time information" | ||
56 | ./1.8.exp "$OVERLAY" "$CHROOT" | ||
57 | |||
58 | echo "TESTING: 1.10 disable /selinux" | ||
59 | ./1.10.exp "$OVERLAY" "$CHROOT" | ||
60 | |||
61 | #################### | ||
62 | # networking features | ||
63 | #################### | ||
64 | if [[ $NETWORK == "network" ]] | ||
65 | then | ||
66 | echo "TESTING: 2.1 hostname" | ||
67 | ./2.1.exp "$OVERLAY" "$CHROOT" | ||
68 | |||
69 | echo "TESTING: 2.2 DNS" | ||
70 | ./2.2.exp "$OVERLAY" "$CHROOT" | ||
71 | |||
72 | echo "TESTING: 2.3 mac-vlan" | ||
73 | ./2.3.exp "$OVERLAY" "$CHROOT" | ||
74 | |||
75 | echo "TESTING: 2.4 bridge" | ||
76 | ./2.4.exp "$OVERLAY" "$CHROOT" | ||
77 | |||
78 | echo "TESTING: 2.5 interface" | ||
79 | ./2.5.exp "$OVERLAY" "$CHROOT" | ||
80 | |||
81 | echo "TESTING: 2.6 Default gateway" | ||
82 | ./2.6.exp "$OVERLAY" "$CHROOT" | ||
83 | fi | ||
84 | |||
85 | #################### | ||
86 | # filesystem features | ||
87 | #################### | ||
88 | echo "TESTING: 3.1 private (fails on OpenSUSE)" | ||
89 | ./3.1.exp "$OVERLAY" "$CHROOT" | ||
90 | |||
91 | echo "TESTING: 3.2 read-only" | ||
92 | ./3.2.exp "$OVERLAY" "$CHROOT" | ||
93 | |||
94 | echo "TESTING: 3.3 blacklist" | ||
95 | ./3.3.exp "$OVERLAY" "$CHROOT" | ||
96 | |||
97 | echo "TESTING: 3.4 whitelist home (fails on OpenSUSE)" | ||
98 | ./3.4.exp "$OVERLAY" "$CHROOT" | ||
99 | |||
100 | echo "TESTING: 3.5 private-dev" | ||
101 | ./3.5.exp "$OVERLAY" "$CHROOT" | ||
102 | |||
103 | echo "TESTING: 3.6 private-etc" | ||
104 | ./3.6.exp notworking "$CHROOT" | ||
105 | |||
106 | echo "TESTING: 3.7 private-tmp" | ||
107 | ./3.7.exp "$OVERLAY" "$CHROOT" | ||
108 | |||
109 | echo "TESTING: 3.8 private-bin" | ||
110 | ./3.8.exp notworking notworking | ||
111 | |||
112 | echo "TESTING: 3.9 whitelist dev" | ||
113 | ./3.9.exp "$OVERLAY" "$CHROOT" | ||
114 | |||
115 | echo "TESTING: 3.10 whitelist tmp" | ||
116 | ./3.10.exp "$OVERLAY" "$CHROOT" | ||
117 | |||
118 | echo "TESTING: 3.11 mkdir" | ||
119 | ./3.11.exp "$OVERLAY" "$CHROOT" | ||