OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   30-Dec-2006 17:19:54
  Branch: HEAD                             Handle: 2006123016195400

  Modified files:
    openpkg-src/clamav      clamav.spec rc.clamav

  Log:
    change permissions to allow MTAs running under management privileges
    to access the socket of the MILTER

  Summary:
    Revision    Changes     Path
    1.77        +1  -1      openpkg-src/clamav/clamav.spec
    1.18        +9  -7      openpkg-src/clamav/rc.clamav
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/clamav/clamav.spec
  ============================================================================
  $ cvs diff -u -r1.76 -r1.77 clamav.spec
  --- openpkg-src/clamav/clamav.spec    30 Dec 2006 09:57:43 -0000      1.76
  +++ openpkg-src/clamav/clamav.spec    30 Dec 2006 16:19:54 -0000      1.77
  @@ -158,7 +158,7 @@
       %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
           %{l_files_std} \
           '%config %{l_prefix}/etc/clamav/*.conf' \
  -        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/clamav' \
  +        '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/clamav' \
           '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/share/clamav'
   
   %files -f files
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/clamav/rc.clamav
  ============================================================================
  $ cvs diff -u -r1.17 -r1.18 rc.clamav
  --- openpkg-src/clamav/rc.clamav      30 Dec 2006 09:57:44 -0000      1.17
  +++ openpkg-src/clamav/rc.clamav      30 Dec 2006 16:19:54 -0000      1.18
  @@ -48,13 +48,15 @@
                   --config-file=$clamav_cfgfile \
                   $clamav_clamd_flags
           elif [ ".$daemon" = ".clamav-milter" -a -x 
@l_prefix@/sbin/clamav-milter ]; then
  -            @l_prefix@/sbin/clamav-milter \
  -                --config-file=$clamav_cfgfile \
  -                --max-children=4 --outgoing --local \
  -                --pidfile=$clamav_pidfile_clamav_milter \
  -                --sendmail-cf=/dev/null \
  -                $clamav_clamav_milter_flags \
  -                local:@l_prefix@/var/clamav/clamav-milter.socket
  +            ( umask 002
  +              @l_prefix@/sbin/clamav-milter \
  +                  --config-file=$clamav_cfgfile \
  +                  --max-children=4 --outgoing --local \
  +                  --pidfile=$clamav_pidfile_clamav_milter \
  +                  --sendmail-cf=/dev/null \
  +                  $clamav_clamav_milter_flags \
  +                  local:@l_prefix@/var/clamav/clamav-milter.socket
  +             ) || exit $?
           fi
       done
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to