From cbf4c26e5f4e585e3c879ed4c2f766f4ef114f04 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 26 Jul 2012 18:48:43 +0200 Subject: Increase address size limit for forks. --- honeypot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/honeypot.c b/honeypot.c index 6e5d0af..3075cab 100644 --- a/honeypot.c +++ b/honeypot.c @@ -427,8 +427,9 @@ void drop_privileges() setrlimit(RLIMIT_DATA, &limit); setrlimit(RLIMIT_FSIZE, &limit); setrlimit(RLIMIT_MEMLOCK, &limit); - setrlimit(RLIMIT_AS, &limit); setrlimit(RLIMIT_STACK, &limit); + limit.rlim_cur = limit.rlim_max = 15728640 /* 15 megabytes */; + setrlimit(RLIMIT_AS, &limit); limit.rlim_cur = limit.rlim_max = 0; setrlimit(RLIMIT_CORE, &limit); limit.rlim_cur = limit.rlim_max = 100; -- cgit v1.2.3-59-g8ed1b