diff options
author | 2023-02-28 09:51:26 -0500 | |
---|---|---|
committer | 2023-02-28 09:51:26 -0500 | |
commit | 27c4d069f322fbeca07c88e0e96208233103a5db (patch) | |
tree | fb4b4fdc75eb5e633ab55b8228a60f54176446a0 /test/root/root.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/root/root.sh')
-rwxr-xr-x | test/root/root.sh | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/test/root/root.sh b/test/root/root.sh deleted file mode 100755 index 84e430c7f..000000000 --- a/test/root/root.sh +++ /dev/null | |||
@@ -1,127 +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 | # set a new firejail config file | ||
7 | #cp firejail.config /etc/firejail/firejail.config | ||
8 | |||
9 | export LC_ALL=C | ||
10 | |||
11 | #******************************** | ||
12 | # firecfg | ||
13 | #******************************** | ||
14 | if command -v less | ||
15 | then | ||
16 | echo "TESTING: firecfg (test/root/firecfg.exp)" | ||
17 | mv /home/netblue/.local/share/applications /home/netblue/.local/share/applications-store | ||
18 | ./firecfg.exp | ||
19 | mv /home/netblue/.local/share/applications-store /home/netblue/.local/share/applications | ||
20 | else | ||
21 | echo "TESTING SKIP: firecfg, less not found" | ||
22 | fi | ||
23 | |||
24 | #******************************** | ||
25 | # servers | ||
26 | #******************************** | ||
27 | if [[ -f /etc/init.d/snmpd ]] | ||
28 | then | ||
29 | echo "TESTING: snmpd (test/root/snmpd.exp)" | ||
30 | ./snmpd.exp | ||
31 | else | ||
32 | echo "TESTING SKIP: snmpd not found" | ||
33 | fi | ||
34 | |||
35 | |||
36 | if [[ -f /etc/init.d/apache2 ]] | ||
37 | then | ||
38 | echo "TESTING: apache2 (test/root/apache2.exp)" | ||
39 | ./apache2.exp | ||
40 | else | ||
41 | echo "TESTING SKIP: apache2 not found" | ||
42 | fi | ||
43 | |||
44 | if [[ -f /etc/init.d/isc-dhcp-server ]] | ||
45 | then | ||
46 | echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)" | ||
47 | ./isc-dhcp.exp | ||
48 | else | ||
49 | echo "TESTING SKIP: isc dhcp server not found" | ||
50 | fi | ||
51 | |||
52 | if [[ -f /etc/init.d/unbound ]] | ||
53 | then | ||
54 | echo "TESTING: unbound (test/root/unbound.exp)" | ||
55 | ./unbound.exp | ||
56 | else | ||
57 | echo "TESTING SKIP: unbound not found" | ||
58 | fi | ||
59 | |||
60 | if [[ -f /etc/init.d/nginx ]] | ||
61 | then | ||
62 | echo "TESTING: nginx (test/root/nginx.exp)" | ||
63 | ./nginx.exp | ||
64 | else | ||
65 | echo "TESTING SKIP: nginx not found" | ||
66 | fi | ||
67 | |||
68 | #******************************** | ||
69 | # filesystem | ||
70 | #******************************** | ||
71 | echo "TESTING: fs private (test/root/private.exp)" | ||
72 | ./private.exp | ||
73 | |||
74 | echo "TESTING: fs whitelist mnt, opt, media (test/root/whitelist-mnt.exp)" | ||
75 | ./whitelist.exp | ||
76 | |||
77 | #******************************** | ||
78 | # utils | ||
79 | #******************************** | ||
80 | echo "TESTING: join (test/root/join.exp)" | ||
81 | ./join.exp | ||
82 | |||
83 | echo "TESTING: login-nobody (test/root/login_nobody.exp)" | ||
84 | ./login_nobody.exp | ||
85 | |||
86 | #******************************** | ||
87 | # seccomp | ||
88 | #******************************** | ||
89 | echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)" | ||
90 | ./seccomp-umount.exp | ||
91 | |||
92 | echo "TESTING: seccomp chmod (test/root/seccomp-chmod.exp)" | ||
93 | ./seccomp-chmod.exp | ||
94 | |||
95 | echo "TESTING: seccomp chown (test/root/seccomp-chown.exp)" | ||
96 | ./seccomp-chown.exp | ||
97 | |||
98 | #******************************** | ||
99 | # command line options | ||
100 | #******************************** | ||
101 | echo "TESTING: firejail configuration (test/root/checkcfg.exp)" | ||
102 | ./checkcfg.exp | ||
103 | cp ../../etc/firejail.config /etc/firejail/. | ||
104 | |||
105 | echo "TESTING: tmpfs (test/root/option_tmpfs.exp)" | ||
106 | ./option_tmpfs.exp | ||
107 | |||
108 | echo "TESTING: profile tmpfs (test/root/profile_tmpfs)" | ||
109 | ./profile_tmpfs.exp | ||
110 | |||
111 | echo "TESTING: bind directory (test/root/option_bind_directory.exp)" | ||
112 | ./option_bind_directory.exp | ||
113 | |||
114 | echo "TESTING: bind file (test/root/option_bind_file.exp)" | ||
115 | echo hello > tmpfile | ||
116 | ./option_bind_file.exp | ||
117 | rm -f tmpfile | ||
118 | |||
119 | #******************************** | ||
120 | # firemon | ||
121 | #******************************** | ||
122 | echo "TESTING: firemon events (test/root/firemon-events.exp)" | ||
123 | ./firemon-events.exp | ||
124 | |||
125 | |||
126 | # restore the default config file | ||
127 | #cp ../../etc/firejail.config /etc/firejail/firejail.config | ||