aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/root.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/root.sh')
-rwxr-xr-xtest/root/root.sh127
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
9export LC_ALL=C
10
11#********************************
12# firecfg
13#********************************
14if command -v less
15then
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
20else
21 echo "TESTING SKIP: firecfg, less not found"
22fi
23
24#********************************
25# servers
26#********************************
27if [[ -f /etc/init.d/snmpd ]]
28then
29 echo "TESTING: snmpd (test/root/snmpd.exp)"
30 ./snmpd.exp
31else
32 echo "TESTING SKIP: snmpd not found"
33fi
34
35
36if [[ -f /etc/init.d/apache2 ]]
37then
38 echo "TESTING: apache2 (test/root/apache2.exp)"
39 ./apache2.exp
40else
41 echo "TESTING SKIP: apache2 not found"
42fi
43
44if [[ -f /etc/init.d/isc-dhcp-server ]]
45then
46 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)"
47 ./isc-dhcp.exp
48else
49 echo "TESTING SKIP: isc dhcp server not found"
50fi
51
52if [[ -f /etc/init.d/unbound ]]
53then
54 echo "TESTING: unbound (test/root/unbound.exp)"
55 ./unbound.exp
56else
57 echo "TESTING SKIP: unbound not found"
58fi
59
60if [[ -f /etc/init.d/nginx ]]
61then
62 echo "TESTING: nginx (test/root/nginx.exp)"
63 ./nginx.exp
64else
65 echo "TESTING SKIP: nginx not found"
66fi
67
68#********************************
69# filesystem
70#********************************
71echo "TESTING: fs private (test/root/private.exp)"
72./private.exp
73
74echo "TESTING: fs whitelist mnt, opt, media (test/root/whitelist-mnt.exp)"
75./whitelist.exp
76
77#********************************
78# utils
79#********************************
80echo "TESTING: join (test/root/join.exp)"
81./join.exp
82
83echo "TESTING: login-nobody (test/root/login_nobody.exp)"
84./login_nobody.exp
85
86#********************************
87# seccomp
88#********************************
89echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)"
90./seccomp-umount.exp
91
92echo "TESTING: seccomp chmod (test/root/seccomp-chmod.exp)"
93./seccomp-chmod.exp
94
95echo "TESTING: seccomp chown (test/root/seccomp-chown.exp)"
96./seccomp-chown.exp
97
98#********************************
99# command line options
100#********************************
101echo "TESTING: firejail configuration (test/root/checkcfg.exp)"
102./checkcfg.exp
103cp ../../etc/firejail.config /etc/firejail/.
104
105echo "TESTING: tmpfs (test/root/option_tmpfs.exp)"
106./option_tmpfs.exp
107
108echo "TESTING: profile tmpfs (test/root/profile_tmpfs)"
109./profile_tmpfs.exp
110
111echo "TESTING: bind directory (test/root/option_bind_directory.exp)"
112./option_bind_directory.exp
113
114echo "TESTING: bind file (test/root/option_bind_file.exp)"
115echo hello > tmpfile
116./option_bind_file.exp
117rm -f tmpfile
118
119#********************************
120# firemon
121#********************************
122echo "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