Bug 759805

Summary: Mimedefang doesn't create mimedefang.sock with correct permissions
Product: [Fedora] Fedora EPEL Reporter: Philip Prindeville <philipp>
Component: mimedefangAssignee: Robert Scheck <redhat-bugzilla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: el6CC: philipp, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mimedefang-2.73-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 07:48:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
EL6 patch for setting group permissions on socket.
none
Amended to just modify umask before calling smfi_opensocket()
none
Bump to official release 2.73-BETA-1 which contains fix none

Description Philip Prindeville 2011-12-03 22:32:18 UTC
Created attachment 540164 [details]
EL6 patch for setting group permissions on socket.

Description of problem:

/var/spool/MIMEDefang/mimedefang.sock is being created as 0750 and not as 0660.

Version-Release number of selected component (if applicable):

2.72-2

How reproducible:

Install and start service, then "ls -l" on above path.

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

This is also needed in Rawhide.

Comment 1 Philip Prindeville 2011-12-04 01:51:04 UTC
Actually, the utils.c portion of the patch is unnecessary.

Comment 2 Philip Prindeville 2011-12-04 07:32:12 UTC
Created attachment 540246 [details]
Amended to just modify umask before calling smfi_opensocket()

Comment 3 Philip Prindeville 2011-12-08 20:19:21 UTC
Skoll has reviewed my patch but has suggested an alternative strategy; no patch has yet been posted.

Comment 4 Robert Scheck 2011-12-26 02:35:53 UTC
Any update here?

Comment 5 Philip Prindeville 2011-12-26 17:49:44 UTC
A similar patch has been integrated into 2.73-BETA1.

http://lists.roaringpenguin.com/pipermail/mimedefang/2011-December/036424.html

Comment 6 Philip Prindeville 2012-01-02 21:12:37 UTC
Created attachment 550310 [details]
Bump to official release 2.73-BETA-1 which contains fix

Please review and publish.

Comment 7 Philip Prindeville 2012-01-02 21:15:11 UTC
Actually, this patch works for both FC16 and EL6.

Comment 8 Philip Prindeville 2012-01-02 21:18:44 UTC
(In reply to comment #4)
> Any update here?

Yes, indeed. It's been fixed upstream and I've posted a patch which bumps to that version.

Comment 9 Philip Prindeville 2012-01-20 21:13:23 UTC
I'm testing 2.73-BETA-3 on Centos6 + EPEL and Fedora 16 right now.

I'd add the following /usr/share/doc/mimedefang-%{version}/README.clamd file:

====

Starting with mimedefang-2.73, integration of mimedefang and clamd is significantly easier.

That said, some manual steps are still required:

(1) add the user clam to the defang group after installing mimedefang

    usermod -a -G defang clam

(2) find and modify the following lines in /etc/clamd.conf:

    LocalSocketGroup defang
    LocalSocketMode 660

    and optionally disable the TCP listener if you are only using the UNIX socket from mimedefang (below):

    #TCPSocket 3310
    #TCPAddr 127.0.0.1

(3) enable MD_ALLOW_GROUP_ACCESS=yes in /etc/sysconfig/mimedefang

(4) configure /etc/mail/mimedefang-filter to use clamd via UNIX socket:

    $Features{'Virus:CLAMD'} = 1;
    $ClamdSock = '/var/run/clamav/clamd.sock';

(5) restart the mimedefang and clamd services (clamd first).

===

Comment 10 Philip Prindeville 2012-01-23 21:58:17 UTC
Mimedefang-2.73 is formally released as of a few hours ago.

Comment 11 Fedora Update System 2012-01-23 22:32:27 UTC
mimedefang-2.73-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/mimedefang-2.73-1.fc16

Comment 12 Fedora Update System 2012-01-23 22:32:58 UTC
mimedefang-2.73-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/mimedefang-2.73-1.fc15

Comment 13 Fedora Update System 2012-01-23 22:33:30 UTC
mimedefang-2.73-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/mimedefang-2.73-1.el6

Comment 14 Fedora Update System 2012-01-23 22:41:17 UTC
mimedefang-2.73-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/mimedefang-2.73-1.el5

Comment 15 Fedora Update System 2012-01-24 01:43:46 UTC
Package mimedefang-2.73-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mimedefang-2.73-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0869/mimedefang-2.73-1.fc16
then log in and leave karma (feedback).

Comment 16 Fedora Update System 2012-02-07 07:48:55 UTC
mimedefang-2.73-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2012-02-07 07:52:27 UTC
mimedefang-2.73-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2012-02-08 20:33:56 UTC
mimedefang-2.73-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2012-02-08 20:34:19 UTC
mimedefang-2.73-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.