aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-root.sh
blob: cd607b75b3f1a9dfd2917934a194107c1be25c4a (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
#!/bin/bash

./chk_config.exp

echo "TESTING: servers rsyslogd, sshd, nginx"
./servers.exp

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

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

if [ -f /etc/init.d/isc-dhcp-server ]
then
	echo "TESTING: servers isc dhcp server"
	./servers4.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: chroot"
./fs_chroot.exp

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

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