Bug 184319 - Spamassassin and SELinux
Summary: Spamassassin and SELinux
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: spamassassin
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Warren Togami
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-07 22:58 UTC by Razvan Sandu
Modified: 2007-11-30 22:11 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-06-28 14:32:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Razvan Sandu 2006-03-07 22:58:38 UTC
Description of problem:

As described in SpamAssassin's man page, the program must create user_prefs in
$HOME/.spamassassin, where $HOME is the homedirectory of the user spamassassin
is run under.

When spamc is invoked from Postfix's master.cf file (as described at 
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix) and SELinux is
enabled, Spamassassin can't create user_prefs file in /home/someuser, even if
"someuser" was created on purpose.


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

spamassassin-3.0.4-2.fc4
selinux-policy-targeted-1.27.1-2.22
postfix-2.2.2-2
(stock Fedora Core 4 + updates March 06, 2006)

How reproducible:
Always.

Steps to Reproduce:
1. Invoke Spamassassin as a filter, from Postfix, as described in
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix, with SELinux
enabled. Postfix users should be virtual users.
  
Actual results:
The process can't write user_prefs under /home/someuser.

Expected results:
A predefined system user should be created when installing Spamassassin (by the
rpm), with an appropiate, FHS-compliant homedirectory, in order to provide a
place to create user_prefs, when Postfix users are virtual users and SELinux is
enabled.

Spamassassin docs should indicate the correct way to proceed/configure in such
cases.


Additional info:

Comment 1 Warren Togami 2006-03-07 23:04:40 UTC
I believe this is fixed in FC5 now.  I don't know if we are able to backport
this for a FC4 update.


Comment 2 Warren Togami 2006-06-28 14:32:45 UTC
Sorry, we will not backport this to FC4.


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