diff options
author | 2016-04-05 13:17:20 -0400 | |
---|---|---|
committer | 2016-04-05 13:17:20 -0400 | |
commit | 10c7565f9d414d745122dac2e441f5e816db7843 (patch) | |
tree | d6e56dacb20561abeb59c3bebd2ca857f4c35112 /test/caps-print.exp | |
parent | firecfg fixes (diff) | |
download | firejail-10c7565f9d414d745122dac2e441f5e816db7843.tar.gz firejail-10c7565f9d414d745122dac2e441f5e816db7843.tar.zst firejail-10c7565f9d414d745122dac2e441f5e816db7843.zip |
grsecurity: --caps.print
Diffstat (limited to 'test/caps-print.exp')
-rwxr-xr-x | test/caps-print.exp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/caps-print.exp b/test/caps-print.exp new file mode 100755 index 000000000..39e5ec50a --- /dev/null +++ b/test/caps-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 --caps.print=test\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "setgid - disabled" | ||
19 | } | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 2\n";exit} | ||
22 | "setuid - disabled" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "net_raw - disabled" | ||
27 | } | ||
28 | sleep 1 | ||
29 | puts "\nall done\n" | ||