Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] group permissions for socket

2007-02-04 by Nerijus Baliunas

On Sun, 4 Feb 2007 08:29:43 +0100 manu@... wrote:

> >  It seems the best
> > option would be to use umask(), but then it's impossible to use syntax like
> > socket "/foo/bar/sock" 660, isn't it?
> 
> I have two concerns:
> - can we screw things in smfi_main() by tempering with umask()?
> - doesn't smfi_main() set umask() to avoid such problems?

According to http://www.milter.org/milter_api/smfi_setconn.html ,
using umask it the official way:

The permissions for a unix/local domain socket are determined as usual
by umask, which should be set to 007 or 077.

Regards,
Nerijus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.