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 1171275 - Qpid policy needs to be rewritten.
Summary: Qpid policy needs to be rewritten.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.7
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: Milos Malik
URL:
Whiteboard:
: 1209495 (view as bug list)
Depends On:
Blocks: 1170775 1218323
TreeView+ depends on / blocked
 
Reported: 2014-12-05 19:24 UTC by Darryl L. Pierce
Modified: 2016-03-23 18:58 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-3.7.19-264.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1218323 (view as bug list)
Environment:
Last Closed: 2015-07-22 07:10:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1375 0 normal SHIPPED_LIVE selinux-policy bug fix and enhancement update 2015-07-20 18:07:47 UTC

Description Darryl L. Pierce 2014-12-05 19:24:25 UTC
The SELinux modules are in need of an overhaul. There are AVC errors that come up as a part of simply starting the daemon, as seen in BZ1170775. Though the broker itself starts and runs without anything affecting the functionality, we're seeing the following errors in /var/log/audit/audit.log


type=AVC msg=audit(1417723790.708:134): avc:  denied  { read } for  pid=1407 comm="qpidd" path="/etc/rc.d/init.d/qpidd" dev=vda1 ino=392580 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:qpidd_initrc_exec_t:s0 tclass=file
type=AVC msg=audit(1417723790.752:135): avc:  denied  { read } for  pid=1407 comm="qpidd" name="psched" dev=proc ino=4026531986 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file
type=AVC msg=audit(1417723790.918:138): avc:  denied  { read } for  pid=1415 comm="restorecon" path="/etc/rc.d/init.d/qpidd" dev=vda1 ino=392580 scontext=unconfined_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:qpidd_initrc_exec_t:s0 tclass=file
type=AVC msg=audit(1417723791.116:141): avc:  denied  { read } for  pid=1428 comm="qpidd" path="/etc/rc.d/init.d/qpidd" dev=vda1 ino=392580 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:qpidd_initrc_exec_t:s0 tclass=file
type=AVC msg=audit(1417723791.169:142): avc:  denied  { read } for  pid=1428 comm="qpidd" name="psched" dev=proc ino=4026531986 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file

Comment 1 Milos Malik 2014-12-06 07:10:32 UTC
I believe that following rule should be added to policy:

allow qpidd_t proc_net_t : file { getattr open read }

Comment 2 Milos Malik 2014-12-06 07:34:55 UTC
Caught in permissive mode:
----
type=PATH msg=audit(12/06/2014 08:32:25.921:908) : item=0 name=/proc/net/psched inode=4026531986 dev=00:03 mode=file,444 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:proc_net_t:s0 nametype=NORMAL 
type=CWD msg=audit(12/06/2014 08:32:25.921:908) :  cwd=/ 
type=SYSCALL msg=audit(12/06/2014 08:32:25.921:908) : arch=x86_64 syscall=open success=yes exit=4 a0=0x7fff11211410 a1=O_RDONLY a2=0x1b6 a3=0x0 items=1 ppid=32653 pid=32654 auid=root uid=qpidd gid=qpidd euid=qpidd suid=qpidd fsuid=qpidd egid=qpidd sgid=qpidd fsgid=qpidd tty=(none) ses=5 comm=qpidd exe=/usr/sbin/qpidd subj=unconfined_u:system_r:qpidd_t:s0 key=(null) 
type=AVC msg=audit(12/06/2014 08:32:25.921:908) : avc:  denied  { open } for  pid=32654 comm=qpidd name=psched dev=proc ino=4026531986 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file 
type=AVC msg=audit(12/06/2014 08:32:25.921:908) : avc:  denied  { read } for  pid=32654 comm=qpidd name=psched dev=proc ino=4026531986 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file 
----
type=SYSCALL msg=audit(12/06/2014 08:32:25.922:909) : arch=x86_64 syscall=fstat success=yes exit=0 a0=0x4 a1=0x7fff11210e90 a2=0x7fff11210e90 a3=0x0 items=0 ppid=32653 pid=32654 auid=root uid=qpidd gid=qpidd euid=qpidd suid=qpidd fsuid=qpidd egid=qpidd sgid=qpidd fsgid=qpidd tty=(none) ses=5 comm=qpidd exe=/usr/sbin/qpidd subj=unconfined_u:system_r:qpidd_t:s0 key=(null) 
type=AVC msg=audit(12/06/2014 08:32:25.922:909) : avc:  denied  { getattr } for  pid=32654 comm=qpidd path=/proc/32654/net/psched dev=proc ino=4026531986 scontext=unconfined_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file 
----

Comment 5 Miroslav Grepl 2015-03-02 16:39:22 UTC
commit 266ef0d597ae82ef60f0bd62cf6c36045f4801ce
Author: Simon Sekidde <ssekidde>
Date:   Mon Dec 29 13:58:17 2014 -0500

    Allow qpidd to read network state and sysctls dirs

Comment 11 Miroslav Grepl 2015-04-10 14:37:03 UTC
commit 5f055a58886c9b7f55ab416ebe8d8c15845c3bfc
Author: Miroslav Grepl <mgrepl>
Date:   Fri Apr 10 16:36:38 2015 +0200

    Allow qpidd to read own init script file.

Comment 15 errata-xmlrpc 2015-07-22 07:10:02 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.

https://rhn.redhat.com/errata/RHBA-2015-1375.html

Comment 16 Mike Cressman 2016-03-23 18:58:08 UTC
*** Bug 1209495 has been marked as a duplicate of this bug. ***


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