diff options
author | netblue30 <netblue30@yahoo.com> | 2016-09-08 08:58:30 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-09-08 08:58:30 -0400 |
commit | 22d6041c8fe43e025676ea254d3cbff7da7e3d4f (patch) | |
tree | b6f07ab0af1564e38b16e856e645625ce6570921 /test | |
parent | Merge pull request #771 from l29ah/master (diff) | |
download | firejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.tar.gz firejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.tar.zst firejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.zip |
0.9.42 testing
Diffstat (limited to 'test')
-rwxr-xr-x | test/profiles/profile_syntax.exp | 2 | ||||
-rwxr-xr-x | test/sysrq-trigger.exp | 21 | ||||
-rwxr-xr-x | test/test-root.sh | 5 |
3 files changed, 3 insertions, 25 deletions
diff --git a/test/profiles/profile_syntax.exp b/test/profiles/profile_syntax.exp index c8cb99a5f..d1be2074a 100755 --- a/test/profiles/profile_syntax.exp +++ b/test/profiles/profile_syntax.exp | |||
@@ -25,7 +25,7 @@ sleep 1 | |||
25 | send -- "ls -l /etc/shadow\r" | 25 | send -- "ls -l /etc/shadow\r" |
26 | expect { | 26 | expect { |
27 | timeout {puts "TESTING ERROR 3\n";exit} | 27 | timeout {puts "TESTING ERROR 3\n";exit} |
28 | "root root 0" | 28 | "root root" |
29 | } | 29 | } |
30 | 30 | ||
31 | sleep 1 | 31 | sleep 1 |
diff --git a/test/sysrq-trigger.exp b/test/sysrq-trigger.exp deleted file mode 100755 index 18fb4a01a..000000000 --- a/test/sysrq-trigger.exp +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "echo b > /proc/sysrq-trigger\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "Read-only file system" | ||
18 | } | ||
19 | sleep 1 | ||
20 | |||
21 | puts "\n" | ||
diff --git a/test/test-root.sh b/test/test-root.sh index aca48d334..0fdaf4ff7 100755 --- a/test/test-root.sh +++ b/test/test-root.sh | |||
@@ -44,9 +44,6 @@ then | |||
44 | ./servers6.exp | 44 | ./servers6.exp |
45 | fi | 45 | fi |
46 | 46 | ||
47 | echo "TESTING: /proc/sysrq-trigger reset disabled (sysrq-trigger.exp)" | ||
48 | ./sysrq-trigger.exp | ||
49 | |||
50 | echo "TESTING: seccomp umount (seccomp-umount.exp)" | 47 | echo "TESTING: seccomp umount (seccomp-umount.exp)" |
51 | ./filters/seccomp-umount.exp | 48 | ./filters/seccomp-umount.exp |
52 | 49 | ||
@@ -80,3 +77,5 @@ rm -f /tmp/chroot/etc/resolv.conf | |||
80 | ln -s tmp /tmp/chroot/etc/resolv.conf | 77 | ln -s tmp /tmp/chroot/etc/resolv.conf |
81 | ./chroot-resolvconf.exp | 78 | ./chroot-resolvconf.exp |
82 | rm -f tmpfile | 79 | rm -f tmpfile |
80 | rm /tmp/chroot/etc/resolv.conf | ||
81 | |||