dovecot-2.0: script-login -d: Ignore chrooting, we can't exec an...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Dec 20 14:45:03 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/49a77e9dad66
changeset: 13005:49a77e9dad66
user: Timo Sirainen <tss at iki.fi>
date: Tue Dec 20 14:45:09 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 728c54eade74 -r 49a77e9dad66 src/util/script-login.c
--- a/src/util/script-login.c Tue Dec 20 14:39:56 2011 +0200
+++ b/src/util/script-login.c Tue Dec 20 14:45:09 2011 +0200
@@ -119,6 +119,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