aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-root.sh
blob: ac6b2ef00d4db0203342206aa291f34d695fad5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash

./chk_config.exp

echo "TESTING: network interfaces"
./net_interface.exp

echo "TESTING: chroot"
./fs_chroot_asroot.exp

if [ -f /etc/init.d/snmpd ]
then
	echo "TESTING: servers snmpd, private-dev"
	./servers2.exp
fi

if [ -f /etc/init.d/apache2 ]
then
	echo "TESTING: servers apache2, private-dev"
	./servers3.exp
fi

if [ -f /etc/init.d/isc-dhcp-server ]
then
	echo "TESTING: servers isc dhcp server, private-dev"
	./servers4.exp
fi

if [ -f /etc/init.d/unbound ]
then
	echo "TESTING: servers unbound, private-dev"
	./servers5.exp
fi

if [ -f /etc/init.d/nginx ]
then
	echo "TESTING: servers nginx, private-dev"
	./servers6.exp
fi

echo "TESTING: /proc/sysrq-trigger reset disabled"
./sysrq-trigger.exp

echo "TESTING: seccomp umount"
./seccomp-umount.exp

echo "TESTING: seccomp chmod (seccomp lists)"
./seccomp-chmod.exp

echo "TESTING: seccomp chown (seccomp lists)"
./seccomp-chown.exp

echo "TESTING: bind directory"
./option_bind_directory.exp

echo "TESTING: bind file"
echo hello > tmpfile
./option_bind_file.exp
rm -f tmpfile

echo "TESTING: firemon --interface"
./firemon-interface.exp

if [ -f /sys/fs/cgroup/g1/tasks ]
then
	echo "TESTING: firemon --cgroup"
	./firemon-cgroup.exp
fi