dovecot-2.0: master: vsz_limit wasn't being enforced.
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 14 21:18:35 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/435298234943
changeset: 9276:435298234943
user: Timo Sirainen <tss at iki.fi>
date: Thu May 14 14:18:16 2009 -0400
description:
master: vsz_limit wasn't being enforced.
diffstat:
1 file changed, 4 insertions(+)
src/master/service-process.c | 4 ++++
diffs (21 lines):
diff -r c38f3fb4c6b6 -r 435298234943 src/master/service-process.c
--- a/src/master/service-process.c Wed May 13 19:52:25 2009 -0400
+++ b/src/master/service-process.c Thu May 14 14:18:16 2009 -0400
@@ -14,6 +14,7 @@
#include "env-util.h"
#include "fd-close-on-exec.h"
#include "restrict-access.h"
+#include "restrict-process-size.h"
#include "master-service-settings.h"
#include "dup2-array.h"
#include "service.h"
@@ -246,6 +247,9 @@ static void drop_privileges(struct servi
if (auth_args != NULL && service->set->master_set->mail_debug)
env_put("DEBUG=1");
+ if (service->set->vsz_limit != 0)
+ restrict_process_size(service->set->vsz_limit, -1U);
+
restrict_access_init(&rset);
rset.uid = service->uid;
rset.gid = service->gid;
More information about the dovecot-cvs
mailing list