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 1716973 - Denials for qpidd when configured for Satellite 6.6 on RHEL8
Summary: Denials for qpidd when configured for Satellite 6.6 on RHEL8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.0
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.1
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-04 13:18 UTC by Lukas Zapletal
Modified: 2020-11-14 12:05 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 22:11:44 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3547 0 None None None 2019-11-05 22:12:01 UTC

Description Lukas Zapletal 2019-06-04 13:18:04 UTC
Hey,

[root@pipeline-satellite-6-6-rhel8 vagrant]# ausearch -m AVC | grep qpidd
type=SYSCALL msg=audit(1559639047.796:3738): arch=c000003e syscall=137 success=yes exit=0 a0=55734993fce8 a1=7ffda3aa3740 a2=55734992b120 a3=7fa50cde3cc0 items=0 ppid=1 pid=21817 auid=4294967295 uid=994 gid=992 euid=994 suid=994 fsuid=994 egid=992 sgid=992 fsgid=992 tty=(none) ses=4294967295 comm="qpidd" exe="/usr/sbin/qpidd" subj=system_u:system_r:qpidd_t:s0 key=(null)
type=AVC msg=audit(1559639047.796:3738): avc:  denied  { getattr } for  pid=21817 comm="qpidd" name="/" dev="vda3" ino=128 scontext=system_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem permissive=1
type=SYSCALL msg=audit(1559639047.797:3739): arch=c000003e syscall=9 success=yes exit=140346887987200 a0=0 a1=308 a2=1 a3=2 items=0 ppid=1 pid=21817 auid=4294967295 uid=994 gid=992 euid=994 suid=994 fsuid=994 egid=992 sgid=992 fsgid=992 tty=(none) ses=4294967295 comm="qpidd" exe="/usr/sbin/qpidd" subj=system_u:system_r:qpidd_t:s0 key=(null)
type=AVC msg=audit(1559639047.797:3739): avc:  denied  { map } for  pid=21817 comm="qpidd" path="/usr/share/p11-kit/modules/p11-kit-trust.module" dev="vda3" ino=67118442 scontext=system_u:system_r:qpidd_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=1


[root@pipeline-satellite-6-6-rhel8 vagrant]# audit2allow -aR

require {
        type qpidd_t;
}

#============= qpidd_t ==============
files_mmap_usr_files(qpidd_t)
fs_getattr_xattr_fs(qpidd_t)

We do have a custom configuration which is:

[root@pipeline-satellite-6-6-rhel8 vagrant]# cat /etc/qpid/qpidd.conf | egrep -v '^#' | sort
acl-file=/etc/qpid/qpid.acl
auth=no
interface=lo
log-enable=error+
log-to-syslog=yes
require-encryption=yes
ssl-cert-db=/etc/pki/katello/nssdb
ssl-cert-name=broker
ssl-cert-password-file=/etc/pki/katello/nssdb/nss_db_password-file
ssl-port=5671
ssl-require-client-authentication=yes
wcache-page-size=4


[root@pipeline-satellite-6-6-rhel8 vagrant]# cat /etc/qpid/qpid.acl | egrep -v '^#' | sort
acl allow all all
acl allow katello_agent@QPID access exchange
acl allow katello_agent@QPID access method name=create
acl allow katello_agent@QPID access queue
acl allow katello_agent@QPID consume queue
acl allow katello_agent@QPID create queue
acl allow katello_agent@QPID publish exchange name=qmf.default.direct
acl allow katello_agent@QPID publish exchange routingkey=pulp.task
acl deny-log katello_agent@QPID access method name=*
acl deny-log katello_agent@QPID all all

[root@pipeline-satellite-6-6-rhel8 vagrant]# cat /etc/qpid/qpidc.conf | egrep -v '^#' | sort
log-enable=error+
ssl-cert-db=/etc/pki/katello/nssdb
ssl-cert-name=broker
ssl-cert-password-file=/etc/pki/katello/nssdb/nss_db_password-file
ssl-port=5671

Comment 2 Lukas Vrabec 2019-06-05 09:23:36 UTC
Fixes in Fedora: 

commit 8e3effc1615f7f47cd58a137438b932fc50e2c28 (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Wed Jun 5 11:23:03 2019 +0200

    Allow qpidd_t domain to getattr all fs_t filesystem and mmap usr_t files

Comment 13 errata-xmlrpc 2019-11-05 22:11:44 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://access.redhat.com/errata/RHBA-2019:3547


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