Displaying 6 results from an estimated 6 matches for "restrict_access_by_env".
2003 Apr 15
1
PATCH allow_zero_gid option
...LL));
+ if (allow_zg == TRUE)
+ env_put(t_strdup("ALLOW_ZERO_GID=TRUE"));
env_put(t_strdup_printf("RESTRICT_SETUID=%s", dec2str(uid)));
env_put(t_strdup_printf("RESTRICT_SETGID=%s", dec2str(gid)));
@@ -45,6 +47,7 @@ void restrict_access_set_env(const char
void restrict_access_by_env(int disallow_root)
{
const char *env;
+ int allow_zero_gid;
gid_t gid;
uid_t uid;
@@ -97,8 +100,14 @@ void restrict_access_by_env(int disallow
i_fatal("We couldn't drop root privileges");
}
- if ((gid != 0 && uid != 0) || disallow_root) {
+ /* allow users with...
2003 Jul 16
2
Dovecot on Linux 2.6.0-test1-ac1
Hi all
For various reasons I was looking into 2.6, so I installed a copy on my
desktop. Everything works fine, except for dovecot - errors such as this
appeared in the syslog:
Jul 15 14:41:09 typhaon dovecot: Dovecot starting up
Jul 15 14:41:12 typhaon imap-login: setuid(113) failed: Resource
temporarily unavailable
Jul 15 14:41:12 typhaon dovecot: Login process died too early - shutting
down
I
2004 Oct 18
2
Index corruption
I'm getting pretty constant index corruption on (admittedly large)
Maildir folders.
I'm running Thunderbird 0.7.3 and Mutt as my IMAP clients (on FreeBSD).
Server is Dovecot 0.99.10.9
configured thusly:
./configure --disable-ipv6 CC=gcc-3.3 CXX=g++-3.3
--prefix=/opt/dovecot --without-pop3d
on a Solaris 2.8 box. Maildirs are NFS-mounted, but the index files are
on local UFS
2006 Nov 28
1
Can't drop root group privileges
Hi all,
I need your insight. I've been testing Dovecot on an AIX 5.2
system. Compiled and running fine. We have some users on an
AIX 5.1 system, so I'm working on installing it there, so we
can do further testing.
I'm using Dovecot 1.0 RC15 with OpenSSL 9.0.7e, configured to use
port 10143 (imap) and 10993 (imaps). The error I'm seeing in the log is:
dovecot: Nov 28
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2008 Nov 08
1
dovecot Digest, Vol 67, Issue 19
...;
auth_debug = getenv("AUTH_DEBUG") != NULL;
ssl_require_client_cert = getenv("SSL_REQUIRE_CLIENT_CERT") != NULL;
+ tcp_wrappers = getenv("TCP_WRAPPERS") != NULL;
greeting = getenv("GREETING");
if (greeting == NULL)
@@ -419,11 +469,12 @@
restrict_access_by_env() is called */
lib_init();
+ process_name = strrchr(argv[0], '/');
+ process_name = process_name == NULL ? argv[0] : process_name+1;
+
if (is_inetd) {
/* running from inetd. create master process before
dropping privileges. */
- process_name = strrchr(argv[0], '/');...