Bug 878076 - AVC denial rhnsd_t executing /usr/bin/python2.7
Summary: AVC denial rhnsd_t executing /usr/bin/python2.7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-19 15:56 UTC by Jan Pazdziora
Modified: 2013-07-04 13:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-04 13:47:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Pazdziora 2012-11-19 15:56:10 UTC
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:

Comment 1 Miroslav Grepl 2012-11-19 17:39:21 UTC
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

Comment 2 Fedora Update System 2012-11-21 11:54:53 UTC
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

Comment 3 Fedora Update System 2012-11-22 03:57:17 UTC
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).

Comment 4 Jan Pazdziora 2012-11-23 15:21:30 UTC
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

Comment 5 Fedora End Of Life 2013-07-04 08:04:43 UTC
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.

Comment 6 Jan Pazdziora 2013-07-04 08:12:03 UTC
(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?

Comment 7 Miroslav Grepl 2013-07-04 13:47:49 UTC
Actually it should be closed as ERRATA by bodhi.


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