aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-root.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/test-root.sh
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/test-root.sh')
-rwxr-xr-xtest/test-root.sh56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/test-root.sh b/test/test-root.sh
new file mode 100755
index 000000000..cd607b75b
--- /dev/null
+++ b/test/test-root.sh
@@ -0,0 +1,56 @@
1#!/bin/bash
2
3./chk_config.exp
4
5echo "TESTING: servers rsyslogd, sshd, nginx"
6./servers.exp
7
8if [ -f /etc/init.d/snmpd ]
9then
10 echo "TESTING: servers snmpd"
11 ./servers2.exp
12fi
13
14if [ -f /etc/init.d/apache2 ]
15then
16 echo "TESTING: servers apache2"
17 ./servers3.exp
18fi
19
20if [ -f /etc/init.d/isc-dhcp-server ]
21then
22 echo "TESTING: servers isc dhcp server"
23 ./servers4.exp
24fi
25
26echo "TESTING: /proc/sysrq-trigger reset disabled"
27./sysrq-trigger.exp
28
29echo "TESTING: seccomp umount"
30./seccomp-umount.exp
31
32echo "TESTING: seccomp chmod (seccomp lists)"
33./seccomp-chmod.exp
34
35echo "TESTING: seccomp chown (seccomp lists)"
36./seccomp-chown.exp
37
38echo "TESTING: bind directory"
39./option_bind_directory.exp
40
41echo "TESTING: bind file"
42echo hello > tmpfile
43./option_bind_file.exp
44rm -f tmpfile
45
46echo "TESTING: chroot"
47./fs_chroot.exp
48
49echo "TESTING: firemon --interface"
50./firemon-interface.exp
51
52if [ -f /sys/fs/cgroup/g1/tasks ]
53then
54 echo "TESTING: firemon --cgroup"
55 ./firemon-cgroup.exp
56fi