This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 227184 - spamd avc connect to smtp for reporting spam
spamd avc connect to smtp for reporting spam
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
6
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-02 17:17 EST by Michael De La Rue
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-22 10:03:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Michael De La Rue 2007-02-02 17:17:16 EST
Description of problem:
When running spamc -C report < <email-in-file>
selinux denies are generated as follows

type=AVC msg=audit(1170454005.846:70): avc:  denied  { name_connect } for 
pid=8951 comm="spamd" dest=587 scontext=system_u:system_r:spamd_t:s0-s0:c0.c1023
tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket


Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-27.fc6
spamassassin-3.1.7-5.fc6

How reproducible:
every time

Steps to Reproduce:
1. service spamd start
2. spamc -C report < <spam-email>
3.
  
Actual results:
the report fails and spamd gives an error like so in /var/log/maillog
Feb  2 22:50:53 telesfor spamd[8951]: spamd: setuid to mikedlr succeeded 
Feb  2 22:50:54 telesfor spamd[8951]: reporter: SpamCop report to
vmx1.spamcop.net failed: Net::SMTP error 
Feb  2 22:50:54 telesfor spamd[8951]: reporter: SpamCop report to
vmx2.spamcop.net failed: Net::SMTP error 
Feb  2 22:50:54 telesfor spamd[8951]: reporter: could not report spam to SpamCop 
Feb  2 22:50:54 telesfor spamd[8951]: reporter: no reporting methods available,
so couldn't report 


Expected results:
maillog should show something like this (which was created with setenforce 0)
Feb  2 23:06:45 telesfor spamd[8951]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 46803 
Feb  2 23:06:45 telesfor spamd[8951]: spamd: setuid to mikedlr succeeded 
Feb  2 23:06:51 telesfor spamd[8951]: reporter: spam reported to SpamCop 
Feb  2 23:06:51 telesfor spamd[8951]: spamd: Tell: Setting remote for
mikedlr:500 in 6.4 seconds, 2457 bytes 


Additional info:
work around: use "spamassassin --report" instead
Comment 1 Daniel Walsh 2007-02-05 15:40:26 EST
Fixed in selinux-policy-2.4.6-36
Comment 2 Daniel Walsh 2007-08-22 10:03:05 EDT
Closed as all fixes are in the current release

Note You need to log in before you can comment on or make changes to this bug.