Description of problem: I had just begun running ``mock -r epel-6-x86_64 --init'' for the first time while running as staff_t. SELinux is preventing /usr/bin/python2.7 from 'block_suspend' accesses on the capability2 . ***** Plugin catchall (100. confidence) suggests ************************** If you believe that python2.7 should be allowed block_suspend access on the capability2 by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep yum /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context staff_u:staff_r:mock_t:s0-s0:c0.c1023 Target Context staff_u:staff_r:mock_t:s0-s0:c0.c1023 Target Objects [ capability2 ] Source yum Source Path /usr/bin/python2.7 Port <Unknown> Host (removed) Source RPM Packages python-2.7.5-9.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-116.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.12.7-300.fc20.x86_64 #1 SMP Fri Jan 10 15:35:31 UTC 2014 x86_64 x86_64 Alert Count 3 First Seen 2014-01-17 11:57:14 PST Last Seen 2014-01-17 11:57:50 PST Local ID 5a1a9fa6-8815-4484-87bd-511c73da9066 Raw Audit Messages type=AVC msg=audit(1389988670.611:405): avc: denied { block_suspend } for pid=2533 comm="yum" capability=36 scontext=staff_u:staff_r:mock_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:mock_t:s0-s0:c0.c1023 tclass=capability2 type=SYSCALL msg=audit(1389988670.611:405): arch=x86_64 syscall=epoll_ctl success=yes exit=0 a0=b a1=2 a2=16 a3=7fff6a897230 items=0 ppid=2518 pid=2533 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=1 tty=(none) comm=yum exe=/usr/bin/python2.7 subj=staff_u:staff_r:mock_t:s0-s0:c0.c1023 key=(null) Hash: yum,mock_t,mock_t,capability2,block_suspend Additional info: reporter: libreport-2.1.11 hashmarkername: setroubleshoot kernel: 3.12.7-300.fc20.x86_64 type: libreport
commit 30b4960252cfda1f5846cda1052af165fcf95311 Author: Miroslav Grepl <mgrepl> Date: Mon Jan 20 10:07:58 2014 +0100 Allow block_suspend for yum running as mock_t
selinux-policy-3.12.1-119.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-119.fc20
Package selinux-policy-3.12.1-119.fc20: * should fix your issue, * was pushed to the Fedora 20 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.12.1-119.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-1249/selinux-policy-3.12.1-119.fc20 then log in and leave karma (feedback).
selinux-policy-3.12.1-119.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.