Yahoo Groups archive

Milter-greylist

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

Thread

[PATCH] socket mode doesn't affect PID file mode

[PATCH] socket mode doesn't affect PID file mode

2009-10-31 by Kouhei Sutou

Hi,

The socket mode configuration(*) affects PID file mode
because milter-greylist uses umask(2) for the configuration.

(*) socket "/var/milter-greylist/milter-greylist.sock" 660

We will use the socket mode configuration to access
milter-greylist socket by other process that belongs to
group of milter-greylist process. In the case, we will use
660 for permitting group access. But it causes that PID file
also gets 660 permission. It's not expected behavior.

chmod(2) should be used instead of umask(2):
  http://www.clear-code.com/~kou/patches/milter-greylist-socket-mode.diff


Thanks,
--
kou

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.