[dovecot-cvs] dovecot/src/master mail-process.c,1.8,1.9 main.c,1.34,1.35 master-settings.c,1.11,1.12 master-settings.h,1.5,1.6

cras at procontrol.fi cras at procontrol.fi
Fri Feb 21 15:02:18 EET 2003


Update of /home/cvs/dovecot/src/master
In directory danu:/tmp/cvs-serv137/src/master

Modified Files:
	mail-process.c main.c master-settings.c master-settings.h 
Log Message:
Added setting mail_drop_priv_before_exec.



Index: mail-process.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/mail-process.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- mail-process.c	14 Feb 2003 10:46:45 -0000	1.8
+++ mail-process.c	21 Feb 2003 13:02:16 -0000	1.9
@@ -216,6 +216,9 @@
 	   any errors above will be logged */
 	closelog();
 
+	if (set->mail_drop_priv_before_exec)
+		restrict_access_by_env(TRUE);
+
 	/* hide the path, it's ugly */
 	argv[0] = strrchr(executable, '/');
 	if (argv[0] == NULL) argv[0] = executable; else argv[0]++;

Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/main.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- main.c	8 Feb 2003 15:42:46 -0000	1.34
+++ main.c	21 Feb 2003 13:02:16 -0000	1.35
@@ -78,11 +78,11 @@
 {
 	i_warning("SIGHUP received - reloading configuration");
 
-	master_settings_read(configfile);
-
 	/* restart auth and login processes */
         login_processes_destroy_all();
         auth_processes_destroy_all();
+
+	master_settings_read(configfile);
 }
 
 static const char *get_exit_status_message(enum fatal_exit_status status)

Index: master-settings.c
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- master-settings.c	14 Feb 2003 10:46:45 -0000	1.11
+++ master-settings.c	21 Feb 2003 13:02:16 -0000	1.12
@@ -68,6 +68,7 @@
 	DEF(SET_INT, mbox_dotlock_change_timeout),
 	DEF(SET_BOOL, overwrite_incompatible_index),
 	DEF(SET_INT, umask),
+	DEF(SET_BOOL, mail_drop_priv_before_exec),
 
 	/* imap */
 	DEF(SET_STR, imap_executable),
@@ -173,6 +174,7 @@
 	MEMBER(mbox_dotlock_change_timeout) 30,
 	MEMBER(overwrite_incompatible_index) FALSE,
 	MEMBER(umask) 0077,
+	MEMBER(mail_drop_priv_before_exec) FALSE,
 
 	/* imap */
 	MEMBER(imap_executable) PKG_LIBEXECDIR"/imap",

Index: master-settings.h
===================================================================
RCS file: /home/cvs/dovecot/src/master/master-settings.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- master-settings.h	14 Feb 2003 10:46:45 -0000	1.5
+++ master-settings.h	21 Feb 2003 13:02:16 -0000	1.6
@@ -52,6 +52,7 @@
 	unsigned int mbox_dotlock_change_timeout;
 	int overwrite_incompatible_index;
 	unsigned int umask;
+	int mail_drop_priv_before_exec;
 
 	/* imap */
 	const char *imap_executable;




More information about the dovecot-cvs mailing list