diff options
author | netblue30 <netblue30@yahoo.com> | 2017-10-30 16:09:57 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-10-30 16:09:57 -0400 |
commit | 66042d7dbc60f183e9d77fefd93a9584e3cf35ef (patch) | |
tree | 9d54205a755125c61c87f7f8e9c0e48743c28b88 /test/profiles | |
parent | testing, fixed cryptocat.profile (diff) | |
download | firejail-66042d7dbc60f183e9d77fefd93a9584e3cf35ef.tar.gz firejail-66042d7dbc60f183e9d77fefd93a9584e3cf35ef.tar.zst firejail-66042d7dbc60f183e9d77fefd93a9584e3cf35ef.zip |
fix --ignore=quiet
Diffstat (limited to 'test/profiles')
-rwxr-xr-x | test/profiles/ignore.exp | 43 | ||||
-rw-r--r-- | test/profiles/ignore2.profile | 2 | ||||
-rw-r--r-- | test/profiles/ignore3.profile | 4 |
3 files changed, 45 insertions, 4 deletions
diff --git a/test/profiles/ignore.exp b/test/profiles/ignore.exp index cdb38e97b..8463d6cc8 100755 --- a/test/profiles/ignore.exp +++ b/test/profiles/ignore.exp | |||
@@ -19,7 +19,7 @@ expect { | |||
19 | BLACKLIST {puts "TESTING ERROR 2\n";exit} | 19 | BLACKLIST {puts "TESTING ERROR 2\n";exit} |
20 | "Child process initialized" | 20 | "Child process initialized" |
21 | } | 21 | } |
22 | sleep 1 | 22 | after 100 |
23 | send -- "exit\r" | 23 | send -- "exit\r" |
24 | sleep 1 | 24 | sleep 1 |
25 | 25 | ||
@@ -28,23 +28,58 @@ expect { | |||
28 | timeout {puts "TESTING ERROR 3\n";exit} | 28 | timeout {puts "TESTING ERROR 3\n";exit} |
29 | "Child process initialized" | 29 | "Child process initialized" |
30 | } | 30 | } |
31 | sleep 1 | 31 | after 100 |
32 | 32 | ||
33 | send -- "ps aux | wc -l\r" | 33 | send -- "ps aux | wc -l\r" |
34 | expect { | 34 | expect { |
35 | timeout {puts "TESTING ERROR 4\n";exit} | 35 | timeout {puts "TESTING ERROR 4\n";exit} |
36 | "5" | 36 | "5" |
37 | } | 37 | } |
38 | after 100 | ||
39 | send -- "exit\r" | ||
38 | sleep 1 | 40 | sleep 1 |
41 | |||
42 | send -- "firejail --ignore=private --ignore=shell --profile=ignore.profile \r" | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5\n";exit} | ||
45 | "Child process initialized" | ||
46 | } | ||
47 | after 100 | ||
48 | |||
49 | send -- "ps aux | wc -l\r" | ||
50 | expect { | ||
51 | timeout {puts "TESTING ERROR 6\n";exit} | ||
52 | "5" | ||
53 | } | ||
54 | after 100 | ||
39 | send -- "exit\r" | 55 | send -- "exit\r" |
40 | sleep 1 | 56 | sleep 1 |
41 | 57 | ||
42 | send -- "firejail --debug --profile=ignore2.profile\r" | 58 | send -- "firejail --debug --profile=ignore2.profile\r" |
43 | expect { | 59 | expect { |
44 | timeout {puts "TESTING ERROR 5\n";exit} | 60 | timeout {puts "TESTING ERROR 7\n";exit} |
45 | BLACKLIST {puts "TESTING ERROR 6\n";exit} | 61 | BLACKLIST {puts "TESTING ERROR 8\n";exit} |
46 | "Child process initialized" | 62 | "Child process initialized" |
47 | } | 63 | } |
48 | 64 | ||
49 | after 100 | 65 | after 100 |
66 | send -- "exit\r" | ||
67 | sleep 1 | ||
68 | |||
69 | send -- "firejail --ignore=quiet --ignore=shell --profile=ignore.profile \r" | ||
70 | expect { | ||
71 | timeout {puts "TESTING ERROR 9\n";exit} | ||
72 | "Child process initialized" | ||
73 | } | ||
74 | after 100 | ||
75 | |||
76 | send -- "ps aux | wc -l\r" | ||
77 | expect { | ||
78 | timeout {puts "TESTING ERROR 10\n";exit} | ||
79 | "5" | ||
80 | } | ||
81 | after 100 | ||
82 | send -- "exit\r" | ||
83 | after 100 | ||
84 | |||
50 | puts "\nall done\n" | 85 | puts "\nall done\n" |
diff --git a/test/profiles/ignore2.profile b/test/profiles/ignore2.profile index 49fcd8324..c85cd9544 100644 --- a/test/profiles/ignore2.profile +++ b/test/profiles/ignore2.profile | |||
@@ -1,3 +1,5 @@ | |||
1 | ignore seccomp | 1 | ignore seccomp |
2 | ignore shell | ||
2 | private | 3 | private |
3 | seccomp | 4 | seccomp |
5 | shell none | ||
diff --git a/test/profiles/ignore3.profile b/test/profiles/ignore3.profile new file mode 100644 index 000000000..f0c9699e1 --- /dev/null +++ b/test/profiles/ignore3.profile | |||
@@ -0,0 +1,4 @@ | |||
1 | quiet | ||
2 | private | ||
3 | seccomp | ||
4 | shell none | ||