[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[postgrey] unix socket permissions


Hello,

I had to find out and apply this patch to get usable permissions on my 
unix socket (there was 0755 otherwise):

--- /usr/sbin/postgrey-1.26       2006-07-16 00:25:11.000000000 +0200
+++ /usr/sbin/postgrey  2006-07-16 00:54:44.000000000 +0200
@@ -509,7 +509,7 @@
      umask 0077;

      # unix socket permissions should be 666
-    if($self->{server}{proto} eq 'unix') {
+    if($self->{server}{proto}[0] eq 'unix') {
          $self->{server}{port}[0] =~ /^(.*)\|unix$/ or
              die "ERROR: wrong port definition\n";
          chmod 0666, $1;

I wonder if anybody else needs this fix. My environment is Red Hat 
Enterprise Linux 4 ES with all updates from Red Hat applied, 
additionally with perl-Net-Server-0.94-1.el4.rf.noarch.rpm from 
http://dag.wieers.com/packages/perl-Net-Server/.


Leos Bitto

-- 
Unsubscribe mailto:postgrey-request@list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/postgrey
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi