RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 614751 - SELinux is preventing yum "unlink" access on yum.pid.
Summary: SELinux is preventing yum "unlink" access on yum.pid.
Keywords:
Status: CLOSED DUPLICATE of bug 614752
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: Milos Malik
URL:
Whiteboard: setroubleshoot_trace_hash:9cf1a1acf08...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-15 07:09 UTC by Michal Nowak
Modified: 2013-03-08 02:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-15 12:49:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Michal Nowak 2010-07-15 07:09:26 UTC
Summary:

SELinux is preventing yum "unlink" access on yum.pid.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by yum. It is not expected that this access is
required by yum and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                yum.pid [ file ]
Source                        yum
Source Path                   yum
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-31.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.32-44.el6.x86_64 #1 SMP Wed Jul 7 15:47:50 EDT
                              2010 x86_64 x86_64
Alert Count                   1
First Seen                    Wed 14 Jul 2010 02:27:29 PM CEST
Last Seen                     Wed 14 Jul 2010 02:27:29 PM CEST
Local ID                      f6cc4924-2a81-47ee-9b3b-e48ae8dd271e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1279110449.152:31784): avc:  denied  { unlink } for  pid=9022 comm="yum" name="yum.pid" dev=dm-0 ino=524861 scontext=unconfined_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file



Hash String generated from  catchall,yum,abrt_t,var_run_t,file,unlink
audit2allow suggests:

#============= abrt_t ==============
allow abrt_t var_run_t:file unlink;

Comment 2 Milos Malik 2010-07-15 08:39:24 UTC
The PID file on your machine is mislabelled.

# matchpathcon /var/run/yum.pid
/var/run/yum.pid	system_u:object_r:rpm_var_run_t:s0

Comment 3 Michal Nowak 2010-07-15 08:51:17 UTC
I remember I have restored context yesterday via fixfiles, in case it affects anything.

Comment 4 Daniel Walsh 2010-07-15 12:49:06 UTC
This is beginning to look like you ran abrtd under the wrong context, unconfined_t?

Which is causing all of these mislabeled files.

*** This bug has been marked as a duplicate of bug 614752 ***


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