Bug 253809

Summary: SELinux is preventing /usr/libexec/postfix/local (postfix_local_t) "write" selinux preventing postfix from working
Product: [Fedora] Fedora Reporter: Harjit Singh Mavi <princemavi>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: russell
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Current Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-30 19:19:32 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 Harjit Singh Mavi 2007-08-22 01:48:19 UTC
Description of problem:
Summary
    SELinux is preventing /usr/libexec/postfix/local (postfix_local_t) "write"
    to root (mail_spool_t).

Detailed Description
    SELinux denied access requested by /usr/libexec/postfix/local. It is not
    expected that this access is required by /usr/libexec/postfix/local and this
    access may signal an intrusion attempt. It is also possible that the
    specific version or configuration of the application is causing it to
    require additional access.

Allowing Access
    Sometimes labeling problems can cause SELinux denials.  You could try to
    restore the default system file context for root, restorecon -v root If this
    does not work, there is currently no automatic way to allow this access.
    Instead,  you can generate a local policy module to allow this access - see
    http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385 Or you can disable
    SELinux protection altogether. Disabling SELinux protection is not
    recommended. Please file a http://bugzilla.redhat.com/bugzilla/enter_bug.cgi
    against this package.

Additional Information        

Source Context                system_u:system_r:postfix_local_t
Target Context                system_u:object_r:mail_spool_t
Target Objects                root [ file ]
Affected RPM Packages         postfix-2.4.3-2.fc7
                              [application]filesystem-2.4.6-1.fc7 [target]
Policy RPM                    selinux-policy-2.6.4-33.fc7
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   plugins.catchall_file
Host Name                     yoyo.ms.unimelb.edu.au
Platform                      Linux yoyo.ms.unimelb.edu.au 2.6.22.1-41.fc7 #1
                              SMP Fri Jul 27 18:10:34 EDT 2007 i686 i686
Alert Count                   21
First Seen                    Tue 21 Aug 2007 04:01:03 AM EST
Last Seen                     Wed 22 Aug 2007 04:38:31 AM EST
Local ID                      16f1f620-6453-4dba-9fa4-6bb02922fcdc
Line Numbers                  

Raw Audit Messages            

avc: denied { write } for comm="local" dev=dm-3 egid=0 euid=0
exe="/usr/libexec/postfix/local" exit=-13 fsgid=0 fsuid=0 gid=0 items=0
name="root" pid=12742 scontext=system_u:system_r:postfix_local_t:s0 sgid=0
subj=system_u:system_r:postfix_local_t:s0 suid=0 tclass=file
tcontext=system_u:object_r:mail_spool_t:s0 tty=(none) uid=0



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


How reproducible:


Steps to Reproduce:
1. i installed FC7 (office and prod.)
2. installed postfix using yum
3. got this error message after few hrs of installing postfix
  
Actual results:


Expected results:


Additional info:

Comment 1 Russell Coker 2007-08-22 23:52:01 UTC
The ideal thing to do is to have a boolean determining whether it can be 
written by postfix_local_t or procmail_t and have the boolean default to 
whatever the default configuration of Postfix in Fedora is.

Comment 2 Daniel Walsh 2007-09-04 20:08:54 UTC
Added boolean allow_postfix_local_write_mail_spool
to selinux-policy-2.6.4-41

setsebool -P allow_postfix_local_write_mail_spool=1 

will turn on this permission.

Comment 3 Daniel Walsh 2008-01-30 19:19:32 UTC
Bulk closing all bugs in Fedora updates in the modified state.  If you bug is
not fixed, please reopen.