Bug 442028

Summary: SELinux preventing procmail recipe
Product: Red Hat Enterprise Linux 5 Reporter: Bryan Hepworth <bryan>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.0CC: mkoci, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 16:31:50 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
SELinux error log none

Description Bryan Hepworth 2008-04-11 08:15:36 EDT
Description of problem:
I've created a new procmail recipe to allow users to email the server to turn 
vacation on and off. The orignal script is here:- 

Selinux errors as follows: -
SELinux is preventing sh (procmail_t) "getattr" to /bin/hostname

SELinux is preventing /usr/bin/procmail (procmail_t) "execute" to hostname

SELinux is preventing the /usr/bin/procmail from using potentially
mislabeled files (tmp). 

The errors said to file bugzilla

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

How reproducible: Everytime the script is used

Steps to Reproduce:
1. Install script into .procmailrc
2. Turn script on in procmail
Actual results:

Vacation message is not created

Expected results:

Vacation message to be sent

Additional info:
Comment 1 Bryan Hepworth 2008-04-11 08:15:36 EDT
Created attachment 302108 [details]
SELinux error log
Comment 2 Daniel Walsh 2008-05-02 16:05:21 EDT
You can add this rule using audit2allow

# grep procmail /var/log/audit/audit.log | audit2allow -M myprocmail
# semodule -i myprocmail.pp

This will be in either 5.2 or 5.3

Fixed in selinux-policy-2.4.6-138.el5
Comment 3 RHEL Product and Program Management 2008-07-16 13:50:14 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 8 errata-xmlrpc 2009-01-20 16:31:50 EST
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.