Bug 876820 - SELinux is preventing /usr/bin/python2.7 from 'remove_name' accesses on the directory cert.pid.
Summary: SELinux is preventing /usr/bin/python2.7 from 'remove_name' accesses on the d...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: subscription-manager
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Devan Goodwin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3dff9c884654a6a278fb9a89548...
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2012-11-15 03:40 UTC by Lenore Martin
Modified: 2013-02-13 14:00 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-13 14:00:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lenore Martin 2012-11-15 03:40:34 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.6.6-1.fc16.i686
time:           Wed 14 Nov 2012 10:38:53 PM EST

description:
:SELinux is preventing /usr/bin/python2.7 from 'remove_name' accesses on the directory cert.pid.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that python2.7 should be allowed remove_name access on the cert.pid directory 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 rhsmcertd-worke /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:rhsmcertd_t:s0
:Target Context                system_u:object_r:rpm_var_run_t:s0
:Target Objects                cert.pid [ dir ]
:Source                        rhsmcertd-worke
:Source Path                   /usr/bin/python2.7
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           python-2.7.3-4.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-91.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux AMPd 3.6.6-1.fc16.i686 #1 SMP Mon Nov 5
:                              17:16:32 UTC 2012 i686 i686
:Alert Count                   2
:First Seen                    Wed 14 Nov 2012 06:28:23 PM EST
:Last Seen                     Wed 14 Nov 2012 10:26:24 PM EST
:Local ID                      55e8be3c-7602-483a-98a3-71419bb681fa
:
:Raw Audit Messages
:type=AVC msg=audit(1352949984.504:167): avc:  denied  { remove_name } for  pid=3467 comm="rhsmcertd-worke" name="cert.pid" dev="tmpfs" ino=33556 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:rpm_var_run_t:s0 tclass=dir
:
:
:type=AVC msg=audit(1352949984.504:167): avc:  denied  { unlink } for  pid=3467 comm="rhsmcertd-worke" name="cert.pid" dev="tmpfs" ino=33556 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:rpm_var_run_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1352949984.504:167): arch=i386 syscall=unlink success=yes exit=0 a0=a221800 a1=0 a2=4cf76590 a3=9b82050 items=0 ppid=1410 pid=3467 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rhsmcertd-worke exe=/usr/bin/python2.7 subj=system_u:system_r:rhsmcertd_t:s0 key=(null)
:
:Hash: rhsmcertd-worke,rhsmcertd_t,rpm_var_run_t,dir,remove_name
:
:audit2allow
:
:#============= rhsmcertd_t ==============
:allow rhsmcertd_t rpm_var_run_t:dir remove_name;
:allow rhsmcertd_t rpm_var_run_t:file unlink;
:
:audit2allow -R
:
:#============= rhsmcertd_t ==============
:allow rhsmcertd_t rpm_var_run_t:dir remove_name;
:allow rhsmcertd_t rpm_var_run_t:file unlink;
:

Comment 1 Miroslav Grepl 2012-11-15 09:16:06 UTC
What is a path to cert.pid?

Comment 2 Daniel Walsh 2012-11-16 18:24:08 UTC
This looks like rpm is executuing rhsmcertd in a post install without executing a script?  Which runs the app as rpm_scritpt_t and ends up creating the pid file and dir with the wrong label.

The pid dir should be in the payload, and we probably need a transition from rpm_script_t to rhsmcertd_t.

Comment 3 Fedora End Of Life 2013-01-16 13:17:17 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. 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 '16'.

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 16'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 16 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 to click on 
"Clone This Bug" and open it against that version of Fedora.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-13 14:00:14 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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