dovecot-2.0: script: Root permissions weren't being dropped befo...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jan 30 17:51:33 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/7ec1982fb275
changeset: 12579:7ec1982fb275
user: Timo Sirainen <tss at iki.fi>
date: Sun Jan 30 17:51:17 2011 +0200
description:
script: Root permissions weren't being dropped before executing the script.
diffstat:
src/util/script.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (21 lines):
diff -r 16ce45dbcb53 -r 7ec1982fb275 src/util/script.c
--- a/src/util/script.c Wed Jan 26 21:47:52 2011 +0200
+++ b/src/util/script.c Sun Jan 30 17:51:17 2011 +0200
@@ -5,6 +5,7 @@
#include "str.h"
#include "env-util.h"
#include "execv-const.h"
+#include "restrict-access.h"
#include "master-interface.h"
#include "master-service.h"
@@ -102,6 +103,9 @@
argv += optind;
master_service_init_log(master_service, "script: ");
+ restrict_access_by_env(NULL, FALSE);
+ restrict_access_allow_coredumps(TRUE);
+
master_service_init_finish(master_service);
master_service_set_service_count(master_service, 1);
More information about the dovecot-cvs
mailing list