diff options
author | startx2017 <vradu.startx@yandex.com> | 2017-10-15 09:00:31 -0400 |
---|---|---|
committer | startx2017 <vradu.startx@yandex.com> | 2017-10-15 09:00:31 -0400 |
commit | 5ee09312da788ebd91184c2be0591da32fbf8e41 (patch) | |
tree | fa866fc47933f83456a0b871df6b16c2efc75445 /test | |
parent | globbing - manpage (diff) | |
download | firejail-5ee09312da788ebd91184c2be0591da32fbf8e41.tar.gz firejail-5ee09312da788ebd91184c2be0591da32fbf8e41.tar.zst firejail-5ee09312da788ebd91184c2be0591da32fbf8e41.zip |
merge --rlimit-as
Diffstat (limited to 'test')
-rwxr-xr-x | test/environment/rlimit-profile.exp | 4 | ||||
-rwxr-xr-x | test/environment/rlimit.exp | 8 | ||||
-rw-r--r-- | test/environment/rlimit.profile | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp index a9e54a405..43d6a3ee0 100755 --- a/test/environment/rlimit-profile.exp +++ b/test/environment/rlimit-profile.exp | |||
@@ -27,6 +27,10 @@ expect { | |||
27 | } | 27 | } |
28 | expect { | 28 | expect { |
29 | timeout {puts "TESTING ERROR 1.4\n";exit} | 29 | timeout {puts "TESTING ERROR 1.4\n";exit} |
30 | "Max address space 123456789012 123456789012" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 1.5\n";exit} | ||
30 | "Max pending signals 200 200" | 34 | "Max pending signals 200 200" |
31 | } | 35 | } |
32 | after 100 | 36 | after 100 |
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp index ecbe2a3b7..38cdc3eea 100755 --- a/test/environment/rlimit.exp +++ b/test/environment/rlimit.exp | |||
@@ -5,7 +5,7 @@ cd /home | |||
5 | spawn $env(SHELL) | 5 | spawn $env(SHELL) |
6 | match_max 100000 | 6 | match_max 100000 |
7 | 7 | ||
8 | send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200\r" | 8 | send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=123456789012\r" |
9 | expect { | 9 | expect { |
10 | timeout {puts "TESTING ERROR 0\n";exit} | 10 | timeout {puts "TESTING ERROR 0\n";exit} |
11 | "Child process initialized" | 11 | "Child process initialized" |
@@ -27,10 +27,14 @@ expect { | |||
27 | } | 27 | } |
28 | expect { | 28 | expect { |
29 | timeout {puts "TESTING ERROR 1.4\n";exit} | 29 | timeout {puts "TESTING ERROR 1.4\n";exit} |
30 | "Max pending signals 200 200" | 30 | "Max address space 123456789012 123456789012" |
31 | } | 31 | } |
32 | expect { | 32 | expect { |
33 | timeout {puts "TESTING ERROR 1.5\n";exit} | 33 | timeout {puts "TESTING ERROR 1.5\n";exit} |
34 | "Max pending signals 200 200" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 1.6\n";exit} | ||
34 | "home" | 38 | "home" |
35 | } | 39 | } |
36 | after 100 | 40 | after 100 |
diff --git a/test/environment/rlimit.profile b/test/environment/rlimit.profile index 88fc9ff31..a57471604 100644 --- a/test/environment/rlimit.profile +++ b/test/environment/rlimit.profile | |||
@@ -2,3 +2,4 @@ | |||
2 | rlimit-nproc 1000 | 2 | rlimit-nproc 1000 |
3 | rlimit-nofile 500 | 3 | rlimit-nofile 500 |
4 | rlimit-sigpending 200 | 4 | rlimit-sigpending 200 |
5 | rlimit-as 123456789012 | ||