diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-21 14:37:53 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-21 14:37:53 -0400 |
commit | ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1 (patch) | |
tree | 0a923afb486b1f13ab35d26138cdbf51e0961aec /test/profile_syntax.exp | |
parent | --read-write option (diff) | |
download | firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.gz firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.zst firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.zip |
make test-profiles
Diffstat (limited to 'test/profile_syntax.exp')
-rwxr-xr-x | test/profile_syntax.exp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/test/profile_syntax.exp b/test/profile_syntax.exp deleted file mode 100755 index 559947276..000000000 --- a/test/profile_syntax.exp +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --profile=test.profile\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | |||
13 | sleep 2 | ||
14 | send -- "cat /sbin/iptables\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "No such file" {puts "\nTESTING /sbin/iptables not found\n"} | ||
18 | "Permission denied" | ||
19 | } | ||
20 | |||
21 | sleep 1 | ||
22 | send -- "ls -l /etc/shadow\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "root root 0" | ||
26 | } | ||
27 | |||
28 | sleep 1 | ||
29 | send -- "rmdir;pwd\r" | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "Permission denied" | ||
33 | } | ||
34 | expect { | ||
35 | timeout {puts "TESTING ERROR 5\n";exit} | ||
36 | "home" | ||
37 | } | ||
38 | |||
39 | sleep 1 | ||
40 | send -- "mount;pwd\r" | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 6\n";exit} | ||
43 | "Permission denied" | ||
44 | } | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 7\n";exit} | ||
47 | "home" | ||
48 | } | ||
49 | |||
50 | sleep 1 | ||
51 | send -- "umount;pwd\r" | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 8\n";exit} | ||
54 | "Permission denied" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 9\n";exit} | ||
58 | "home" | ||
59 | } | ||
60 | send -- "exit\r" | ||
61 | |||
62 | sleep 1 | ||
63 | puts "\n" | ||