diff options
author | 2016-04-06 10:19:16 -0400 | |
---|---|---|
committer | 2016-04-06 10:19:16 -0400 | |
commit | ef8e8c1a5a9e15051e7aeed859526e7bbbfad550 (patch) | |
tree | 27d1b5b730b4171b07c41e36c0482801ac527ba2 /test/fs-print.exp | |
parent | grsecurity: --protocol.print (diff) | |
download | firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.tar.gz firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.tar.zst firejail-ef8e8c1a5a9e15051e7aeed859526e7bbbfad550.zip |
grsecurity: fs.print
Diffstat (limited to 'test/fs-print.exp')
-rwxr-xr-x | test/fs-print.exp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/fs-print.exp b/test/fs-print.exp new file mode 100755 index 000000000..48056a3bf --- /dev/null +++ b/test/fs-print.exp | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=test\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 2 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --fs.print=test\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "blacklist /boot" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "blacklist /dev/kmsg" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "blacklist /proc/kmsg" | ||
27 | } | ||
28 | sleep 1 | ||
29 | puts "\nall done\n" | ||