diff options
author | netblue30 <netblue30@yahoo.com> | 2016-09-15 09:59:11 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-09-15 09:59:11 -0400 |
commit | fc116c063938d5e141d5fbc38e8013d9832ef315 (patch) | |
tree | 382b401cc0a9efeda1509a88bd430cd68b741346 /test/root/root.sh | |
parent | fixed /etc/login.def reading on Mageia systems (diff) | |
download | firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.gz firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.tar.zst firejail-fc116c063938d5e141d5fbc38e8013d9832ef315.zip |
testing
Diffstat (limited to 'test/root/root.sh')
-rwxr-xr-x | test/root/root.sh | 105 |
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 | #******************************** | ||
8 | if [ -f /etc/init.d/snmpd ] | ||
9 | then | ||
10 | echo "TESTING: snmpd (test/root/snmpd.exp)" | ||
11 | ./snmpd.exp | ||
12 | else | ||
13 | echo "TESTING SKIP: snmpd not found" | ||
14 | fi | ||
15 | |||
16 | |||
17 | if [ -f /etc/init.d/apache2 ] | ||
18 | then | ||
19 | echo "TESTING: apache2 (test/root/apache2.exp)" | ||
20 | ./apache2.exp | ||
21 | else | ||
22 | echo "TESTING SKIP: apache2 not found" | ||
23 | fi | ||
24 | |||
25 | if [ -f /etc/init.d/isc-dhcp-server ] | ||
26 | then | ||
27 | echo "TESTING: isc dhcp server (test/root/isc-dhscp.exp)" | ||
28 | ./isc-dhcp.exp | ||
29 | else | ||
30 | echo "TESTING SKIP: isc dhcp server not found" | ||
31 | fi | ||
32 | |||
33 | if [ -f /etc/init.d/unbound ] | ||
34 | then | ||
35 | echo "TESTING: unbound (test/root/unbound.exp)" | ||
36 | ./unbound.exp | ||
37 | else | ||
38 | echo "TESTING SKIP: unbound not found" | ||
39 | fi | ||
40 | |||
41 | if [ -f /etc/init.d/nginx ] | ||
42 | then | ||
43 | echo "TESTING: nginx (test/root/nginx.exp)" | ||
44 | ./nginx.exp | ||
45 | else | ||
46 | echo "TESTING SKIP: nginx not found" | ||
47 | fi | ||
48 | |||
49 | #******************************** | ||
50 | # seccomp | ||
51 | #******************************** | ||
52 | echo "TESTING: seccomp umount (test/root/seccomp-umount.exp)" | ||
53 | ./seccomp-umount.exp | ||
54 | |||
55 | echo "TESTING: seccomp chmod (test/root/seccomp-chmod.exp)" | ||
56 | ./seccomp-chmod.exp | ||
57 | |||
58 | echo "TESTING: seccomp chown (test/root/seccomp-chown.exp)" | ||
59 | ./seccomp-chown.exp | ||
60 | |||
61 | #******************************** | ||
62 | # command line options | ||
63 | #******************************** | ||
64 | echo "TESTING: tmpfs (test/root/option_tmpfs.exp)" | ||
65 | ./option_tmpfs.exp | ||
66 | |||
67 | echo "TESTING: profile tmpfs (test/root/profile_tmpfs)" | ||
68 | ./profile_tmpfs.exp | ||
69 | |||
70 | echo "TESTING: bind directory (test/root/option_bind_directory.exp)" | ||
71 | ./option_bind_directory.exp | ||
72 | |||
73 | echo "TESTING: bind file (test/root/option_bind_file.exp)" | ||
74 | echo hello > tmpfile | ||
75 | ./option_bind_file.exp | ||
76 | rm -f tmpfile | ||
77 | |||
78 | #******************************** | ||
79 | # networking | ||
80 | #******************************** | ||
81 | echo "TESTING: network interfaces (test/root/net_interface.exp)" | ||
82 | ./net_interface.exp | ||
83 | |||
84 | echo "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 | |||