[dovecot-cvs] dovecot/src/login-common main.c,1.11,1.12
cras at procontrol.fi
cras at procontrol.fi
Wed Jul 16 10:37:06 EEST 2003
Update of /home/cvs/dovecot/src/login-common
In directory danu:/tmp/cvs-serv9841
Modified Files:
main.c
Log Message:
Disable forking after setuid(), so Linux 2.6 is happy.
Index: main.c
===================================================================
RCS file: /home/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- main.c 19 Jun 2003 02:00:25 -0000 1.11
+++ main.c 16 Jul 2003 06:37:04 -0000 1.12
@@ -130,9 +130,6 @@
static void drop_privileges(const char *name)
{
- /* make sure we can't fork() */
- restrict_process_size((unsigned int)-1, 1);
-
/* Log file or syslog opening probably requires roots */
open_logfile(name);
@@ -143,6 +140,9 @@
/* Refuse to run as root - we should never need it and it's
dangerous with SSL. */
restrict_access_by_env(TRUE);
+
+ /* make sure we can't fork() */
+ restrict_process_size((unsigned int)-1, 1);
}
static void main_init(void)
More information about the dovecot-cvs
mailing list