List Info

Thread: Permissions on amavisd.sock




Permissions on amavisd.sock
user name
2006-09-29 19:48:26
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
Permissions on amavisd.sock
user name
2006-09-30 00:02:59
> > +sub post_configure_hook {
> > +  umask(0007);  # affect protection of Unix
sockets created by

> This worked for me.  Thanks.

Good, thanks for trying it out.

The framework will be in place with 2.4.3,
just the umask(0007) line will be commented out.

  Mark

------------------------------------------------------------
-------------
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?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )