Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 956303

Summary: [abrt] subscription-manager-1.8.5-1.el7: connection.py:651:call_blocking:DBusException: org.freedesktop.DBus.Error.AccessDenied: An SELinux policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", ...
Product: Red Hat Enterprise Linux 7 Reporter: Petr Lautrbach <plautrba>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: bkearney, mgrepl, plautrba
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d662304849e4a50296fc62052191507d1e2d9844
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-06 18:04:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 863175    
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

Description Petr Lautrbach 2013-04-24 15:40:25 UTC
Version-Release number of selected component:
subscription-manager-1.8.5-1.el7

Additional info:
cmdline:        /usr/bin/python /usr/libexec/rhsmd
dso_list:       dbus-python-1.1.1-4.el7.x86_64
executable:     /usr/libexec/rhsmd
kernel:         3.9.0-0.rc6.51.el7.x86_64
runlevel:       N 5
uid:            0
ureports_counter: 1

Truncated backtrace:
connection.py:651:call_blocking:DBusException: org.freedesktop.DBus.Error.AccessDenied: An SELinux policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", sender=":1.285" (uid=13558 pid=30629 comm="/usr/bin/rhsm-icon ") interface="com.redhat.SubscriptionManager.EntitlementStatus" member="check_status" error name="(unset)" requested_reply="0" destination="com.redhat.SubscriptionManager" (uid=0 pid=30767 comm="/usr/bin/python /usr/libexec/rhsmd ")

Traceback (most recent call last):
  File "/usr/libexec/rhsmd", line 265, in <module>
    main()
  File "/usr/libexec/rhsmd", line 256, in main
    checker = StatusChecker(system_bus, options.keep_alive, force_signal, loop)
  File "/usr/libexec/rhsmd", line 127, in __init__
    name = dbus.service.BusName("com.redhat.SubscriptionManager", bus)
  File "/usr/lib/python2.7/site-packages/dbus/service.py", line 131, in __new__
    retval = bus.request_name(name, name_flags)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 303, in request_name
    'su', (name, flags))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
DBusException: org.freedesktop.DBus.Error.AccessDenied: An SELinux policy prevents this sender from sending this message to this recipient, 0 matched rules; type="method_call", sender=":1.285" (uid=13558 pid=30629 comm="/usr/bin/rhsm-icon ") interface="com.redhat.SubscriptionManager.EntitlementStatus" member="check_status" error name="(unset)" requested_reply="0" destination="com.redhat.SubscriptionManager" (uid=0 pid=30767 comm="/usr/bin/python /usr/libexec/rhsmd ")

Local variables in innermost frame:
byte_arrays: False
self: <dbus._dbus.SystemBus (system) at 0x218b2f0>
args: ('com.redhat.SubscriptionManager', 0)
object_path: '/org/freedesktop/DBus'
signature: 'su'
bus_name: 'org.freedesktop.DBus'
get_args_opts: {'byte_arrays': False, 'utf8_strings': False}
timeout: -1.0
kwargs: {}
dbus_interface: 'org.freedesktop.DBus'
message: <dbus.lowlevel.MethodCallMessage path: /org/freedesktop/DBus, iface: org.freedesktop.DBus, member: RequestName dest: org.freedesktop.DBus>
method: 'RequestName'

Comment 1 Petr Lautrbach 2013-04-24 15:40:29 UTC
Created attachment 739508 [details]
File: backtrace

Comment 2 Petr Lautrbach 2013-04-24 15:40:31 UTC
Created attachment 739509 [details]
File: core_backtrace

Comment 3 Petr Lautrbach 2013-04-24 15:40:34 UTC
Created attachment 739510 [details]
File: environ

Comment 5 Miroslav Grepl 2013-11-05 20:44:40 UTC
Petr,
how about

# ausearch -m user_avc

Comment 6 Petr Lautrbach 2013-11-06 16:16:46 UTC
I don't know, This bug was reported by abrtd on 2013-04-24 17:40:25 CEST and I don't even use the subscription-manager. Sorry.

Comment 7 Miroslav Grepl 2013-11-06 18:04:57 UTC
Ah, I missed the date. I believe it has been already fixed.