dovecot-2.0-sslstream: mail-storage-service: Added MAIL_STORAGE_...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Feb 13 02:56:34 EET 2010
details: http://hg.dovecot.org/dovecot-2.0-sslstream/rev/dffe7da9ca2e
changeset: 10364:dffe7da9ca2e
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 18 18:07:48 2009 -0500
description:
mail-storage-service: Added MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS flag.
diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
src/lib-storage/mail-storage-service.c | 3 ++-
src/lib-storage/mail-storage-service.h | 4 +++-
diffs (28 lines):
diff -r 28cdf09c062b -r dffe7da9ca2e src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c Wed Nov 18 15:19:54 2009 -0500
+++ b/src/lib-storage/mail-storage-service.c Wed Nov 18 18:07:48 2009 -0500
@@ -744,7 +744,8 @@ int mail_storage_service_next(struct mai
home, chroot,
(ctx->flags & MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT) != 0,
temp_priv_drop);
- if (!temp_priv_drop)
+ if (!temp_priv_drop ||
+ (ctx->flags & MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS) != 0)
restrict_access_allow_coredumps(TRUE);
}
if (!ctx->modules_initialized) {
diff -r 28cdf09c062b -r dffe7da9ca2e src/lib-storage/mail-storage-service.h
--- a/src/lib-storage/mail-storage-service.h Wed Nov 18 15:19:54 2009 -0500
+++ b/src/lib-storage/mail-storage-service.h Wed Nov 18 18:07:48 2009 -0500
@@ -19,8 +19,10 @@ enum mail_storage_service_flags {
MAIL_STORAGE_SERVICE_FLAG_NO_CHDIR = 0x10,
/* Drop privileges only temporarily (keep running as setuid-root) */
MAIL_STORAGE_SERVICE_FLAG_TEMP_PRIV_DROP = 0x20,
+ /* Enable core dumps even when dropping privileges temporarily */
+ MAIL_STORAGE_SERVICE_FLAG_ENABLE_CORE_DUMPS = 0x40,
/* Don't initialize logging or change log prefixes */
- MAIL_STORAGE_SERVICE_NO_LOG_INIT = 0x40
+ MAIL_STORAGE_SERVICE_NO_LOG_INIT = 0x80
};
struct mail_storage_service_input {
More information about the dovecot-cvs
mailing list