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 868959 - AVCs for cluster-cim w/ Pegasus server
Summary: AVCs for cluster-cim w/ Pegasus server
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-22 14:52 UTC by Jan Pokorný [poki]
Modified: 2013-02-21 08:31 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-176.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
selinux-policy-3.7.19-154.el6.noarch
Last Closed: 2013-02-21 08:31:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch for selinux-policy. (1.14 KB, patch)
2012-10-22 14:52 UTC, Jan Pokorný [poki]
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 849242 0 medium CLOSED [RFE] Reduce the window for stale data 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2013:0314 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2013-02-20 20:35:01 UTC

Internal Links: 849242

Description Jan Pokorný [poki] 2012-10-22 14:52:28 UTC
Created attachment 631583 [details]
Proposed patch for selinux-policy.

After fixing [bug 865588] (planned for 6.4), which allowed cluster-cim
package (CIM provider of cluster status) to be used at all,
AVCs connected with access to these unix sockets were identified:

A. /var/run/clumond.sock (provided by modclusterd)

type=AVC msg=audit(1350478773.891:62): avc:  denied  { write }
  for  pid=1583 comm="cimprovagt" name="clumond.sock" dev=vda2 ino=144768
  scontext=system_u:system_r:pegasus_t:s0
  tcontext=unconfined_u:object_r:ricci_modcluster_var_run_t:s0
  tclass=sock_file
type=AVC msg=audit(1350478800.780:66): avc:  denied  { connectto }
  for  pid=1583 comm="cimprovagt" path="/var/run/clumond.sock"
  scontext=system_u:system_r:pegasus_t:s0
  tcontext=unconfined_u:system_r:ricci_modclusterd_t:s0
  tclass=unix_stream_socket


B. /var/run/cman_client (provided by corosync)

type=AVC msg=audit(1350914395.838:5295): avc:  denied  { write }
  for  pid=9679 comm="cimprovagt" name="cman_client" dev=vda2 ino=153616
  scontext=unconfined_u:system_r:pegasus_t:s0
  tcontext=unconfined_u:object_r:corosync_var_run_t:s0
  tclass=sock_file
type=AVC msg=audit(1350914395.838:5295): avc:  denied  { connectto }
  for  pid=9679 comm="cimprovagt" path="/var/run/cman_client"
  scontext=unconfined_u:system_r:pegasus_t:s0
  tcontext=unconfined_u:system_r:corosync_t:s0
  tclass=unix_stream_socket


For a simple reproducer, please see mentioned [bug 865588] (I am yet
to add steps to use http instead of https, which did not work for me).

Attached is the patch to cover both, successfully tested in my 6.3
environment.

Also please note that part of the planned solution for [bug 849242]
is to, by the way, remove direct use of B. /var/run/cman_client.
This is what the patch states in the comment.  I'll notify when this
happens (6.5+).

Comment 2 Jan Pokorný [poki] 2012-10-22 15:10:20 UTC
[bug 865588 comment 6] <-- proper reproducer

Comment 3 Miroslav Grepl 2012-10-23 12:46:58 UTC
I added fixes to Fedora. Will backport.

Comment 6 errata-xmlrpc 2013-02-21 08:31:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0314.html


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