mail-storage-service.c revision faca2afa3576c50caf28e0f009555325d2a49e0b
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen/* If time moves backwards more than this, kill ourself instead of sleeping. */
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen const char *set_cache_module, *set_cache_service;
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen struct master_service_settings_cache *set_cache;
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen const struct dynamic_settings_parser *set_cache_dyn_parsers;
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen struct setting_parser_info *set_cache_dyn_parsers_parent;
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen const struct setting_parser_info **set_cache_roots;
const char *system_groups_user;
const char *str;
const char *dir)
const char *const *chroot_dirs;
return FALSE;
return FALSE;
return TRUE;
chroot_dirs++;
return FALSE;
const char **error_r)
unsigned int i, count;
bool mail_debug;
int ret = 0;
#ifdef HAVE_SETPRIORITY
} else T_BEGIN {
} T_END;
if (ret < 0) {
return ret;
const char *const **fields_r,
const char **error_r)
const char *new_username;
int ret;
if (ret > 0) {
} else if (ret == 0)
return ret;
return TRUE;
return FALSE;
return TRUE;
return TRUE;
return FALSE;
return TRUE;
const char *system_groups_user,
if (disallow_root &&
if (keep_setuid_root) {
if (current_euid != 0) {
if (seteuid(0) < 0)
if (!setenv_only) {
const char **error_r)
static const struct var_expand_table *
return tab;
T_BEGIN {
} T_END;
if (diff > 0) {
diff++;
struct mail_storage_service_ctx *
unsigned int count;
count = 0;
return ctx;
struct auth_master_connection *
unsigned int i, count;
for (i = 0; i < count; i++) {
static struct setting_parser_info *
unsigned int i, count;
for (i = 0; i < count; i++) {
for (i = 0; i < count; i++) {
return new_parent;
const char **error_r)
i_unreached();
const char **error_r)
const char *const *userdb_fields;
error_r) < 0) {
error_r);
if (ret <= 0) {
return ret;
i_unreached();
if (ret > 0) {
return ret;
const char **error_r)
unsigned int len;
bool disallow_root =
bool temp_priv_drop =
if (!temp_priv_drop ||
if (!temp_priv_drop) {
&error) < 0)
const char **error_r)
const char *error;
int ret;
if (ret <= 0) {
return ret;
const char *error;
&error) < 0)
const char **username_r)
const struct mail_storage_service_input *
struct setting_parser_context *
T_BEGIN {
} T_END;
return set;