aboutsummaryrefslogtreecommitdiffstats
path: root/test/seccomp-extra/mrwx.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-03-09 08:39:25 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-03-09 08:39:25 -0500
commitc79aa14295f907ffac0cf5555515602b7393b8b6 (patch)
tree87a114af4e12388e09e2d16d518b50be9ddbe0a6 /test/seccomp-extra/mrwx.exp
parenttesting (diff)
downloadfirejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.gz
firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.tar.zst
firejail-c79aa14295f907ffac0cf5555515602b7393b8b6.zip
testing
Diffstat (limited to 'test/seccomp-extra/mrwx.exp')
-rwxr-xr-xtest/seccomp-extra/mrwx.exp37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/seccomp-extra/mrwx.exp b/test/seccomp-extra/mrwx.exp
new file mode 100755
index 000000000..403bc852f
--- /dev/null
+++ b/test/seccomp-extra/mrwx.exp
@@ -0,0 +1,37 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10
11
12# memory-deny-write-execute
13send -- "firejail --debug --memory-deny-write-execute pwd\r"
14expect {
15 timeout {puts "TESTING ERROR 1\n";exit}
16 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
17}
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 "Installing /run/firejail/mnt/seccomp/seccomp.mdwx seccomp filter"
21}
22after 500
23
24send -- "firejail --debug --profile=mrwx.profile pwd\r"
25expect {
26 timeout {puts "TESTING ERROR 3\n";exit}
27 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
28}
29expect {
30 timeout {puts "TESTING ERROR 4\n";exit}
31 "Installing /run/firejail/mnt/seccomp/seccomp.mdwx seccomp filter"
32}
33after 500
34
35
36after 500
37puts "all done\n"