Bug 530750 - (selinux) spamassassin can't read from /var/lib/spamassassin/
(selinux) spamassassin can't read from /var/lib/spamassassin/
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Miroslav Grepl
BaseOS QE Security Team
Depends On:
  Show dependency treegraph
Reported: 2009-10-24 14:03 EDT by Warren Togami
Modified: 2012-10-15 10:29 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-30 03:50:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Warren Togami 2009-10-24 14:03:55 EDT
procmail is piping to spamassassin, AVC denial as it tries to read from /var/lib/spamassassin/3.003000/.

type=AVC msg=audit(1256406006.631:330034): avc:  denied  { read } for  pid=26233 comm="spamassassin" name="3.003000" dev=dm-0 ino=846234 scontext=root:system_r:spamassassin_t:s0 tcontext=user_u:object_r:spamd_var_lib_t:s0 tclass=dir
type=SYSCALL msg=audit(1256406006.631:330034): arch=c000003e syscall=2 success=no exit=-13 a0=a3bbae0 a1=10800 a2=2 a3=13 items=0 ppid=26232 pid=26233 auid=0 uid=619 gid=619 euid=619 suid=619 fsuid=619 egid=619 sgid=619 fsgid=619 tty=(none) ses=1540 comm="spamassassin" exe="/usr/bin/perl" subj=root:system_r:spamassassin_t:s0 key=(null)

Comment 1 Daniel Walsh 2009-10-26 09:37:25 EDT

Just add list_files_pattern(spamassassin_t,spamd_var_lib_t,spamd_var_lib_t)
Comment 2 Daniel Walsh 2009-10-26 09:39:27 EDT
It is strange that we do not have this rule in F12 policy, but allow spam to list the contents of the directory that it can read does not seem like a stretch.
Comment 4 Miroslav Grepl 2009-11-06 09:34:33 EST
Fixed in selinux-policy-2.4.6-264.el5
Comment 8 errata-xmlrpc 2010-03-30 03:50:31 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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