diff options
author | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-08-08 19:12:30 -0400 |
commit | 1379851360349d6617ad32944a25ee5e2bb74fc2 (patch) | |
tree | f69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/test-root.sh | |
parent | delete files (diff) | |
download | firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip |
Baseline firejail 0.9.28
Diffstat (limited to 'test/test-root.sh')
-rwxr-xr-x | test/test-root.sh | 56 |
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 | |||
5 | echo "TESTING: servers rsyslogd, sshd, nginx" | ||
6 | ./servers.exp | ||
7 | |||
8 | if [ -f /etc/init.d/snmpd ] | ||
9 | then | ||
10 | echo "TESTING: servers snmpd" | ||
11 | ./servers2.exp | ||
12 | fi | ||
13 | |||
14 | if [ -f /etc/init.d/apache2 ] | ||
15 | then | ||
16 | echo "TESTING: servers apache2" | ||
17 | ./servers3.exp | ||
18 | fi | ||
19 | |||
20 | if [ -f /etc/init.d/isc-dhcp-server ] | ||
21 | then | ||
22 | echo "TESTING: servers isc dhcp server" | ||
23 | ./servers4.exp | ||
24 | fi | ||
25 | |||
26 | echo "TESTING: /proc/sysrq-trigger reset disabled" | ||
27 | ./sysrq-trigger.exp | ||
28 | |||
29 | echo "TESTING: seccomp umount" | ||
30 | ./seccomp-umount.exp | ||
31 | |||
32 | echo "TESTING: seccomp chmod (seccomp lists)" | ||
33 | ./seccomp-chmod.exp | ||
34 | |||
35 | echo "TESTING: seccomp chown (seccomp lists)" | ||
36 | ./seccomp-chown.exp | ||
37 | |||
38 | echo "TESTING: bind directory" | ||
39 | ./option_bind_directory.exp | ||
40 | |||
41 | echo "TESTING: bind file" | ||
42 | echo hello > tmpfile | ||
43 | ./option_bind_file.exp | ||
44 | rm -f tmpfile | ||
45 | |||
46 | echo "TESTING: chroot" | ||
47 | ./fs_chroot.exp | ||
48 | |||
49 | echo "TESTING: firemon --interface" | ||
50 | ./firemon-interface.exp | ||
51 | |||
52 | if [ -f /sys/fs/cgroup/g1/tasks ] | ||
53 | then | ||
54 | echo "TESTING: firemon --cgroup" | ||
55 | ./firemon-cgroup.exp | ||
56 | fi | ||