From a535609f5b6f4f6357219630f2da485d4aefb9d9 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 11 Aug 2018 08:53:05 -0400 Subject: release 0.9.56~rc1 testing --- test/blacklist-link.exp | 82 ------------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100755 test/blacklist-link.exp (limited to 'test/blacklist-link.exp') diff --git a/test/blacklist-link.exp b/test/blacklist-link.exp deleted file mode 100755 index 4252f875a..000000000 --- a/test/blacklist-link.exp +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/expect -f - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -# blacklist a directory symlink -send -- "firejail --blacklist=auto2\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls auto2\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "cannot open directory" -} -send -- "exit\r" -sleep 1 - -# blacklist a directory symlink from a profile file -send -- "firejail --profile=blacklist3.profile\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls auto2\r" -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "cannot open directory" -} -send -- "exit\r" -sleep 1 - -# do not blacklist /bin -send -- "firejail --blacklist=auto3\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "auto3 directory link was not blacklisted" -} -expect { - timeout {puts "TESTING ERROR 5.1\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls auto3; pwd\r" -expect { - timeout {puts "TESTING ERROR 6\n";exit} - "cannot open directory" {puts "TESTING ERROR 6.1\n";exit} - "home" -} -send -- "exit\r" -sleep 1 - -# do not blacklist /usr/bin -send -- "firejail --blacklist=auto3\r" -expect { - timeout {puts "TESTING ERROR 7\n";exit} - "auto3 directory link was not blacklisted" -} -expect { - timeout {puts "TESTING ERROR 7.1\n";exit} - "Child process initialized" -} -sleep 1 - -send -- "ls auto3; pwd\r" -expect { - timeout {puts "TESTING ERROR 8\n";exit} - "cannot open directory" {puts "TESTING ERROR 9.1\n";exit} - "home" -} -send -- "exit\r" -sleep 1 - - -puts "all done\n" -- cgit v1.2.3-54-g00ecf