From fc5edbced21973e4309d5f77f5384f70defa0cd8 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 6 Apr 2016 10:28:04 -0400 Subject: grsecurity: --dns.print --- test/dns-print.exp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 test/dns-print.exp (limited to 'test/dns-print.exp') diff --git a/test/dns-print.exp b/test/dns-print.exp new file mode 100755 index 000000000..ee7b08e5e --- /dev/null +++ b/test/dns-print.exp @@ -0,0 +1,21 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --name=test --dns=1.2.3.4\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 2 + +spawn $env(SHELL) +send -- "firejail --dns.print=test\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "nameserver 1.2.3.4" +} +sleep 1 +puts "\nall done\n" -- cgit v1.2.3-70-g09d2