aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/root.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-09-15 09:59:11 -0400
commitfc116c063938d5e141d5fbc38e8013d9832ef315 (patch)
tree382b401cc0a9efeda1509a88bd430cd68b741346 /test/root/root.sh
parentfixed /etc/login.def reading on Mageia systems (diff)
downloadfirejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.gz
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.zst
firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.zip
testing
Diffstat (limited to 'test/root/root.sh')
-rwxr-xr-xtest/root/root.sh105
1 files changed, 105 insertions, 0 deletions
diff --git a/test/root/root.sh b/test/root/root.sh
new file mode 100755
index 000000000..960071d45
--- /dev/null
+++ b/test/root/root.sh
@@ -0,0 +1,105 @@
1#!/bin/bash
2
3./configure 2 > /dev/null
4
5#********************************
6# servers
7#********************************
8if [ -f /etc/init.d/snmpd ]
9then
10 echo "TESTING: snmpd (test/root/snmpd.exp)"
11 ./snmpd.exp
12else
13 echo "TESTING SKIP: snmpd not found"
14fi
15
16
17if [ -f /etc/init.d/apache2 ]
18then
19 echo "TESTING: apache2 (test/root/apache2.exp)"
20 ./apache2.exp
21else
22 echo "TESTING SKIP: apache2 not found"
23fi
24
25if [ -f /etc/init.d/isc-dhcp-server ]
26then
27 echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)"
28 ./isc-dhcp.exp
29else
30 echo "TESTING SKIP: isc dhcp server not found"
31fi
32
33if [ -f /etc/init.d/unbound ]
34then
35 echo "TESTING: unbound (test/root/unbound.exp)"
36 ./unbound.exp
37else
38 echo "TESTING SKIP: unbound not found"
39fi
40
41if [ -f /etc/init.d/nginx ]
42then
43 echo "TESTING: nginx (test/root/nginx.exp)"
44 ./nginx.exp
45else
46 echo "TESTING SKIP: nginx not found"
47fi
48
49#********************************
50# seccomp
51#********************************
52echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)"
53./seccomp-umount.exp
54
55echo "TESTING: seccomp chmod (test/root/seccomp-chmod.exp)"
56./seccomp-chmod.exp
57
58echo "TESTING: seccomp chown (test/root/seccomp-chown.exp)"
59./seccomp-chown.exp
60
61#********************************
62# command line options
63#********************************
64echo "TESTING: tmpfs (test/root/option_tmpfs.exp)"
65./option_tmpfs.exp
66
67echo "TESTING: profile tmpfs (test/root/profile_tmpfs)"
68./profile_tmpfs.exp
69
70echo "TESTING: bind directory (test/root/option_bind_directory.exp)"
71./option_bind_directory.exp
72
73echo "TESTING: bind file (test/root/option_bind_file.exp)"
74echo hello > tmpfile
75./option_bind_file.exp
76rm -f tmpfile
77
78#********************************
79# networking
80#********************************
81echo "TESTING: network interfaces (test/root/net_interface.exp)"
82./net_interface.exp
83
84echo "TESTING: firemon --interface (test/root/firemon-interface.exp)"
85./firemon-interface.exp
86
87#if [ -f /sys/fs/cgroup/g1/tasks ]
88#then
89# echo "TESTING: firemon --cgroup (firemon-cgroup.exp)"
90# ./firemon-cgroup.exp
91#fi
92#
93#echo "TESTING: chroot resolv.conf (chroot-resolvconf.exp)"
94#rm -f tmpfile
95#touch tmpfile
96#rm -f /tmp/chroot/etc/resolv.conf
97#ln -s tmp /tmp/chroot/etc/resolv.conf
98#./chroot-resolvconf.exp
99#rm -f tmpfile
100#rm /tmp/chroot/etc/resolv.conf
101
102#echo "TESTING: chroot (fs_chroot_asroot.exp)"
103#./fs_chroot_asroot.exp
104
105