Description of problem: When running rhnsd on Fedora 17, and when the system is registered to Spacewalk, and when an action is scheduled on the Spacewalk for the system to pick up, rhnsd execs /usr/sbin/rhn_check which leads to AVC denials. Version-Release number of selected component (if applicable): # rpm -q selinux-policy selinux-policy-3.10.0-159.fc17.noarch How reproducible: Deterministic. Steps to Reproduce: 1. Have system with rhnsd enabled and running registered to Spacewalk and schedule action. 2. Wait for rhnsd to pick up that action (by default, once per four hours, interval is configured in /etc/sysconfig/rhn/rhnsd ... but it cannot be shorter than 60 minutes, unless you recompile rhnsd). 3. Observe that rhn_check was run (rhnsd_t is permissive in Fedora 17) but AVC denials are logged. Actual results: type=AVC msg=audit(1353347011.639:1017): avc: denied { execute } for pid=18800 comm="rhnsd" name="python2.7" dev="dm-1" ino=5109 scontext=system_u:system_r:rhnsd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file type=AVC msg=audit(1353347011.639:1018): avc: denied { read open } for pid=18800 comm="rhnsd" path="/usr/bin/python2.7" dev="dm-1" ino=5109 scontext=system_u:system_r:rhnsd_t:s0 tcontext=system_u:object_r:bin_t:s0 tclass=file Expected results: No AVC denials. Additional info:
Added. git.fedorahosted.org/git/selinux-policy.git commit 996732fc538438699858354638727e4c213b81dd Author: Miroslav Grepl <mgrepl> Date: Mon Nov 19 18:34:30 2012 +0100 Allow rhnsd to execute bin_t in the caller rhnsd_t domain
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17
Package selinux-policy-3.10.0-161.fc17: * should fix your issue, * was pushed to the Fedora 17 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.10.0-161.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17 then log in and leave karma (feedback).
Upgrading to selinux-policy-3.10.0-161.fc17 and selinux-policy-targeted-3.10.0-161.fc17 made the AVC denial go away. Thank you, Jan
This message is a reminder that Fedora 17 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 17. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '17'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 17's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 17 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 17's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
(In reply to Jan Pazdziora from comment #4) > Upgrading to selinux-policy-3.10.0-161.fc17 and > selinux-policy-targeted-3.10.0-161.fc17 made the AVC denial go away. Hmmm, based on this, shouldn't this bug be CURRENTRELEASE long time ago?
Actually it should be closed as ERRATA by bodhi.