[Dovecot] Segfault when opening a public folder, dovecot 1.1 beta4

Adam McDougall mcdouga9 at egr.msu.edu
Sun Oct 28 16:08:08 EET 2007


On Sat, Oct 27, 2007 at 03:52:28PM -0400, Adam McDougall wrote:

  >> Right now in my public folder permission scheme, the only thing I need
  >> dovecot-shared for (I think) is making client-added emails world-readable 
  >> at least
  >> (currently actually mode 666).  As long as the indexes are accessible by 
  >> the user,
  >> I don't care what mode or group they are.
    
    How about this: http://hg.dovecot.org/dovecot/rev/0dd9b91fd52c
  
  I will roll that in and test alongside the next patch you sent.  Thanks.  
  
I'm not sure this is working completely, it seems to help but I still notice
some errors.  I made sure the mount was remounted without nosuid but on second
thought I don't think that actually matters since we are not executing dovecot-shared.

I set sgid on all of my dovecot-shared files:
-rw-rwSrw-  1 postlocal  postlocal  0 May 15 17:30 /egr/mail/shared/decs/.receipts.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 May 15 17:30 /egr/mail/shared/decs/.support.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 12 11:03 /egr/mail/shared/decs/.jbossadmin.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Jun 25 15:52 /egr/mail/shared/decs/.network.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 May 15 17:30 /egr/mail/shared/decs/.postmaster.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 May 15 17:30 /egr/mail/shared/decs/.security.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 24 23:26 /egr/mail/shared/decs/.unixadmin.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 24 23:26 /egr/mail/shared/decs/.unixadmin.In-2007-10/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:46 /egr/mail/shared/decs/.unixadmin/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 24 21:48 /egr/mail/shared/decs/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:48 /egr/mail/shared/decs/.linuxadmin.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:48 /egr/mail/shared/decs/.linuxadmin/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:45 /egr/mail/shared/decs/.linuxadmin.In-2007-10/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:51 /egr/mail/shared/decs/.backups.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:51 /egr/mail/shared/decs/.backups/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:51 /egr/mail/shared/decs/.backups.In-2007-10/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:51 /egr/mail/shared/decs/.printmaster.In-2007-10/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:51 /egr/mail/shared/decs/.printmaster/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 25 00:52 /egr/mail/shared/decs/.printmaster.In/dovecot-shared
-rw-rwSrw-  1 postlocal  postlocal  0 Oct 24 23:26 /egr/mail/shared/decs/.unixadmin.Spam/dovecot-shared

Oct 28 09:58:59 gribble dovecot: IMAP(mcdouga9): 
fchown(/home/mcdouga9/Maildir/dovecot11testing/public/control/decs/.postmaster.In/dovecot-keywords.lock) failed: 
Operation not permitted

Other errors:

Oct 28 09:48:12 gribble dovecot: IMAP(mcdouga9): fchown(/egr/mail/shared/decs/temp.gribble.73172.4c26d7ffde1d024c) 
failed: Operation not permitted
Oct 28 09:52:49 gribble dovecot: IMAP(mcdouga9): fchown(/egr/mail/shared/decs/temp.gribble.73230.fba3c6533356d144) 
failed: Operation not permitted
Oct 28 09:53:00 gribble dovecot: IMAP(mcdouga9): 
fchown(/home/mcdouga9/Maildir/dovecot11testing/public/control/decs/.postmaster.In/dovecot-keywords.lock) failed: 
Operation not permitted
Oct 28 09:53:00 gribble dovecot: IMAP(mcdouga9): 
fchown(/home/mcdouga9/Maildir/dovecot11testing/public/control/decs/.postmaster.In/dovecot-uidlist.tmp) failed: 
Operation not permitted
Oct 28 09:58:25 gribble dovecot: IMAP(mcdouga9): fchown(/egr/mail/shared/decs/temp.gribble.73350.d3836dd2d12c3731) 
failed: Operation not permitted



More information about the dovecot mailing list