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:
commit 49e60a820839c80440ba04d1d241d649681233b9 Author: Lukas Vrabec <lvrabec> Date: Fri Mar 20 14:25:12 2015 +0100 Allow fetchmail to read mail_spool_t. BZ(1200552)
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
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).
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.