Bug 237248

Summary: SELinux Amavisd-new/perl SpamAssassin denial
Product: [Fedora] Fedora Reporter: Anthony Messina <amessina>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-31 20:58:30 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:

Description Anthony Messina 2007-04-20 13:20:39 UTC
Description of problem:
Amavisd-new needs to be able to have perl (called from within amavis) access
SpamAssassin files /var/lib/spamassassin

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-57.fc6

How reproducible:
Every time

Steps to Reproduce:
1. Filter mail through amavisd-new with spamassassin enabled

  
Actual results:
avc: denied { search } for comm="amavisd" dev=sda2 egid=104 euid=103
exe="/usr/bin/perl" exit=-2 fsgid=104 fsuid=103 gid=104 items=0
name="spamassassin" pid=3155 scontext=system_u:system_r:amavis_t:s0 sgid=104
subj=system_u:system_r:amavis_t:s0 suid=103 tclass=dir
tcontext=system_u:object_r:spamd_var_lib_t:s0 tty=(none) uid=103

Expected results:
No denial

Additional info:
Running in permissive mode.

Comment 1 Daniel Walsh 2007-05-17 16:38:45 UTC
Fixed in selinux-policy-2.4.6-71