From 27c4d069f322fbeca07c88e0e96208233103a5db Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 28 Feb 2023 09:51:26 -0500 Subject: chroot testing --- test/root/seccomp-chmod.exp | 53 --------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100755 test/root/seccomp-chmod.exp (limited to 'test/root/seccomp-chmod.exp') diff --git a/test/root/seccomp-chmod.exp b/test/root/seccomp-chmod.exp deleted file mode 100755 index d26098524..000000000 --- a/test/root/seccomp-chmod.exp +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/expect -f -# This file is part of Firejail project -# Copyright (C) 2014-2023 Firejail Authors -# License GPL v2 - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "firejail --seccomp=chmod,fchmod,fchmodat --private\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" -} -sleep 2 - -send -- "stty -echo\r" -after 100 -send -- "cd ~; echo done\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "done" -} - -send -- "touch testfile; echo done\r" -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "done" -} - -send -- "ls -l testfile; echo done\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "testfile" -} -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "done" -} - -send -- "chmod +x testfile; echo done\r" -expect { - timeout {puts "TESTING ERROR 5\n";exit} - "Bad system call" -} -expect { - timeout {puts "TESTING ERROR 6\n";exit} - "done" -} - -send -- "exit\r" -after 100 -puts "\nall done\n" -- cgit v1.2.3-70-g09d2