aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-root.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-03-27 10:11:47 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-03-27 10:11:47 -0400
commiteb6a65889480d8090e0e4d81e2f79a5c7e23df39 (patch)
treeed17c491c99162f5e2b5653d9d8e1b7976ba852a /test/test-root.sh
parentprofile fixes (diff)
downloadfirejail-eb6a65889480d8090e0e4d81e2f79a5c7e23df39.tar.gz
firejail-eb6a65889480d8090e0e4d81e2f79a5c7e23df39.tar.zst
firejail-eb6a65889480d8090e0e4d81e2f79a5c7e23df39.zip
fixed servers.profile
Diffstat (limited to 'test/test-root.sh')
-rwxr-xr-xtest/test-root.sh37
1 files changed, 19 insertions, 18 deletions
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