Re: [AMaViS-user] Permissions on amavisd.sock

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 ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2006
MBGaskins@co.berkeley.sc.us
 
Posts: n/a
Default Re: [AMaViS-user] Permissions on amavisd.sock

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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0