Bug 1200552 - selinux fetchmail.pid permission denied
Summary: selinux fetchmail.pid permission denied
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-10 20:17 UTC by guilde.nt
Modified: 2015-03-31 21:46 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.13.1-105.9.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-31 21:46:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description guilde.nt 2015-03-10 20:17:44 UTC
Description of problem:

Starting fetchmail from /etc/rc.d/rc.local fails with this message :

Mar  9 22:21:00 linux kernel: [   61.718767] audit: type=1400 audit(1425936060.972:7): avc:  denied  { read } for  pid=643 comm="fetchmail" name=".fetchmail.pid" dev="dm-1" ino=312344 scontext=system_u:system_r:fetchmail_t:s0 tcontext=system_u:object_r:mail_spool_t:s0 tclass=file permissive=0

This is the first boot on Fedora 21 ; it worked on Fedora 20.

Installing a selinux module (echo 'Mar  9...' | audit2allow -M mod ; semodule -i mod.pp) solves nothing. restorecon -R /var/spool/mail solves nothing. Executing /etc/rc.d/rc.local as root starts fetchmail.

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

fetchmail-6.3.26-4.fc21.i686
selinux-policy-3.13.1-105.3.fc21.noarch
kernel-PAE-3.18.8-201.fc21.i686

How reproducible:

Always

Steps to Reproduce:

1.

In /etc/rc.d/rc.local :
su -s /bin/sh -c 'fetchmail --daemon 600 -f /etc/fetchmail/fetchmailrc' mail

2.

reboot

3.

pgrep -fl fetchmail

Actual results:
fetchmail not started

Expected results:
fetchmail started

Additional info:

Comment 1 Lukas Vrabec 2015-03-20 13:26:29 UTC
commit 49e60a820839c80440ba04d1d241d649681233b9
Author: Lukas Vrabec <lvrabec>
Date:   Fri Mar 20 14:25:12 2015 +0100

    Allow fetchmail to read mail_spool_t. BZ(1200552)

Comment 2 Fedora Update System 2015-03-23 16:48:06 UTC
selinux-policy-3.13.1-105.9.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/selinux-policy-3.13.1-105.9.fc21

Comment 3 Fedora Update System 2015-03-26 21:28:29 UTC
Package selinux-policy-3.13.1-105.9.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.13.1-105.9.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4492/selinux-policy-3.13.1-105.9.fc21
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-03-31 21:46:45 UTC
selinux-policy-3.13.1-105.9.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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