dovecot-2.1: script-login -d: Ignore chrooting, we can't exec an...

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 20 14:45:12 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/73fbc40b860f
changeset: 13872:73fbc40b860f
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 20 14:45:22 2011 +0200
description:
script-login -d: Ignore chrooting, we can't exec anything inside chroot.

diffstat:

 src/util/script-login.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 477106b6f4c7 -r 73fbc40b860f src/util/script-login.c
--- a/src/util/script-login.c	Tue Dec 20 14:40:18 2011 +0200
+++ b/src/util/script-login.c	Tue Dec 20 14:45:22 2011 +0200
@@ -121,6 +121,8 @@
 		if (mail_storage_service_lookup(service_ctx, &input, &user, &error) <= 0)
 			i_fatal("%s", error);
 		mail_storage_service_restrict_setenv(service_ctx, user);
+		/* we can't exec anything in a chroot */
+		env_remove("RESTRICT_CHROOT");
 		restrict_access_by_env(getenv("HOME"), TRUE);
 	}
 


More information about the dovecot-cvs mailing list