This is a discussion on Re: [AMaViS-user] Permissions on amavisd.sock within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Mark Martinec wrote on 09/29/2006 09:09:10 AM: > > (patch against 2.4.2, but should ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Mark Martinec wrote on 09/29/2006 09:09:10 AM:
> > (patch against 2.4.2, but should apply to other versions as well): > > Actually my previous patch was not too clever, it affected > file protection of pid file as well. Strike it, and try this one: > > --- amavisd.orig Tue Jun 27 13:31:56 2006 > +++ amavisd Fri Sep 29 15:08:00 2006 > @@ -6867,4 +6867,12 @@ > } > > +sub post_configure_hook { > + umask(0007); # affect protection of Unix sockets created by Net::Server > +} > + > +sub post_bind_hook { > + umask(0027); # restore our preferred umask > +} > + > ### Net::Server hook > ### This hook occurs in the parent (master) process after chroot, This worked for me. Thanks. Michael Gaskins ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?p...rge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|