aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/server.profile3
-rwxr-xr-xtest/test-root.sh37
-rw-r--r--todo2
3 files changed, 22 insertions, 20 deletions
diff --git a/etc/server.profile b/etc/server.profile
index dde80bd18..61d10ba64 100644
--- a/etc/server.profile
+++ b/etc/server.profile
@@ -2,6 +2,9 @@
2# it allows /sbin and /usr/sbin directories - this is where servers are installed 2# it allows /sbin and /usr/sbin directories - this is where servers are installed
3noblacklist /sbin 3noblacklist /sbin
4noblacklist /usr/sbin 4noblacklist /usr/sbin
5include /etc/firejail/disable-common.inc
6include /etc/firejail/disable-programs.inc
7
5private 8private
6private-dev 9private-dev
7private-tmp 10private-tmp
diff --git a/test/test-root.sh b/test/test-root.sh
index 1c3fc4c96..7e1a0b968 100755
--- a/test/test-root.sh
+++ b/test/test-root.sh
@@ -2,80 +2,81 @@
2 2
3./chk_config.exp 3./chk_config.exp
4 4
5echo "TESTING: tmpfs" 5echo "TESTING: tmpfs (option_tmpfs.exp)"
6./option_tmpfs.exp 6./option_tmpfs.exp
7 7
8echo "TESTING: profile tmpfs" 8echo "TESTING: profile tmpfs (profile_tmpfs)"
9./profile_tmpfs.exp 9./profile_tmpfs.exp
10 10
11echo "TESTING: network interfaces" 11echo "TESTING: network interfaces (net_interface.exp)"
12./net_interface.exp 12./net_interface.exp
13 13
14echo "TESTING: chroot" 14echo "TESTING: chroot (fs_chroot_asroot.exp)"
15./fs_chroot_asroot.exp 15./fs_chroot_asroot.exp
16 16
17if [ -f /etc/init.d/snmpd ] 17if [ -f /etc/init.d/snmpd ]
18then 18then
19 echo "TESTING: servers snmpd, private-dev" 19 echo "TESTING: servers snmpd, private-dev (servers2.exp)"
20 ./servers2.exp 20 ./servers2.exp
21fi 21fi
22 22
23if [ -f /etc/init.d/apache2 ] 23if [ -f /etc/init.d/apache2 ]
24then 24then
25 echo "TESTING: servers apache2, private-dev, private-tmp" 25 echo "TESTING: servers apache2, private-dev, private-tmp (servers3.exp)"
26 ./servers3.exp 26 ./servers3.exp
27fi 27fi
28 28
29if [ -f /etc/init.d/isc-dhcp-server ] 29if [ -f /etc/init.d/isc-dhcp-server ]
30then 30then
31 echo "TESTING: servers isc dhcp server, private-dev" 31 echo "TESTING: servers isc dhcp server, private-dev (servers4.exp)"
32 ./servers4.exp 32 ./servers4.exp
33fi 33fi
34 34
35if [ -f /etc/init.d/unbound ] 35if [ -f /etc/init.d/unbound ]
36then 36then
37 echo "TESTING: servers unbound, private-dev, private-tmp" 37 echo "TESTING: servers unbound, private-dev, private-tmp (servers5.exp)"
38 ./servers5.exp 38 ./servers5.exp
39fi 39fi
40 40
41if [ -f /etc/init.d/nginx ] 41if [ -f /etc/init.d/nginx ]
42then 42then
43 echo "TESTING: servers nginx, private-dev, private-tmp" 43 echo "TESTING: servers nginx, private-dev, private-tmp (servers6.exp)"
44 ./servers6.exp 44 ./servers6.exp
45fi 45fi
46 46
47echo "TESTING: /proc/sysrq-trigger reset disabled" 47echo "TESTING: /proc/sysrq-trigger reset disabled (sysrq-trigger.exp)"
48./sysrq-trigger.exp 48./sysrq-trigger.exp
49 49
50echo "TESTING: seccomp umount" 50echo "TESTING: seccomp umount (seccomp-umount.exp)"
51./seccomp-umount.exp 51./seccomp-umount.exp
52 52
53echo "TESTING: seccomp chmod (seccomp lists)" 53echo "TESTING: seccomp chmod (seccomp-chmod.exp)"
54./seccomp-chmod.exp 54./seccomp-chmod.exp
55 55
56echo "TESTING: seccomp chown (seccomp lists)" 56echo "TESTING: seccomp chown (seccomp-chown.exp)"
57./seccomp-chown.exp 57./seccomp-chown.exp
58 58
59echo "TESTING: bind directory" 59echo "TESTING: bind directory (option_bind_directory.exp)"
60./option_bind_directory.exp 60./option_bind_directory.exp
61 61
62echo "TESTING: bind file" 62echo "TESTING: bind file (option_bind_file.exp)"
63echo hello > tmpfile 63echo hello > tmpfile
64./option_bind_file.exp 64./option_bind_file.exp
65rm -f tmpfile 65rm -f tmpfile
66 66
67echo "TESTING: firemon --interface" 67echo "TESTING: firemon --interface (firemon-interface.exp)"
68./firemon-interface.exp 68./firemon-interface.exp
69 69
70if [ -f /sys/fs/cgroup/g1/tasks ] 70if [ -f /sys/fs/cgroup/g1/tasks ]
71then 71then
72 echo "TESTING: firemon --cgroup" 72 echo "TESTING: firemon --cgroup (firemon-cgroup.exp)"
73 ./firemon-cgroup.exp 73 ./firemon-cgroup.exp
74fi 74fi
75 75
76echo "TESTING: chroot resolv.conf" 76echo "TESTING: chroot resolv.conf (chroot-resolvconf.exp)"
77rm -f tmpfile 77rm -f tmpfile
78touch tmpfile 78touch tmpfile
79rm -f /tmp/chroot/etc/resolv.conf
79ln -s tmp /tmp/chroot/etc/resolv.conf 80ln -s tmp /tmp/chroot/etc/resolv.conf
80./chroot-resolvconf.exp 81./chroot-resolvconf.exp
81rm -f tmpfile 82rm -f tmpfile
diff --git a/todo b/todo
index 4d00229c1..4e7d20e7f 100644
--- a/todo
+++ b/todo
@@ -75,5 +75,3 @@ CapBnd: 0000003fffffffff
75CapAmb: 0000000000000000 75CapAmb: 0000000000000000
76 76
7711. cleanup thunderbird profile - disable-common was commented out 7711. cleanup thunderbird profile - disable-common was commented out
78
7912. removed disable_mgmgt.inc form server.profile, replace the information