dovecot-2.0: master: If process running as root didn't dump core...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 20 10:31:45 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/8954b4d78dd2
changeset: 11346:8954b4d78dd2
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 20 09:31:41 2010 +0200
description:
master: If process running as root didn't dump core, don't suggest non-working workarounds.

diffstat:

 src/master/service-process.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 01f81b9e9586 -r 8954b4d78dd2 src/master/service-process.c
--- a/src/master/service-process.c	Thu May 20 09:25:47 2010 +0200
+++ b/src/master/service-process.c	Thu May 20 09:31:41 2010 +0200
@@ -395,11 +395,11 @@
 	}
 
 #ifndef HAVE_PR_SET_DUMPABLE
-	if (!service->set->drop_priv_before_exec) {
+	if (!service->set->drop_priv_before_exec && service->uid != 0) {
 		str_append(str, " (core not dumped - set drop_priv_before_exec=yes)");
 		return;
 	}
-	if (*service->set->privileged_group != '\0') {
+	if (*service->set->privileged_group != '\0' && service->uid != 0) {
 		str_append(str, " (core not dumped - privileged_group prevented it)");
 		return;
 	}


More information about the dovecot-cvs mailing list