[Dovecot] problems with dotlock

Timo Sirainen tss at iki.fi
Tue Mar 3 03:22:11 EET 2009


On Mar 2, 2009, at 7:32 PM, Mark Hedges wrote:

>
> On Mon, 2 Mar 2009, Timo Sirainen wrote:
>> I was rather thinking that maybe the kernel doesn't want
>> to write core files to directories that are writable by
>> everyone.
>
> Could it be that dovecot uses setuid to change permissions?
> Application would need 'prctl(PR_SET_DUMPABLE, 1);'

Interesting. I hadn't known about this before. I'll definitely look  
into this and enable it if it appears to work.

Anyway, with mail_drop_priv_before_exec=yes this isn't necessary.

> I tried using a pristine 1.1.11 source build with a
> core_pattern directory that was owned by root, or by
> dovecot, or by the user, but I still didn't see a core
> there.

In my setups it core dumps to the user's home directory just fine.

Can you make any program dump core? For example:

sleep 5 &
kill -SEGV %1



More information about the dovecot mailing list