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 1949493

Summary: AVC denied for chronyd socket
Product: Red Hat Enterprise Linux 8 Reporter: David Jež <djez>
Component: selinux-policyAssignee: Nikola Knazekova <nknazeko>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: lmiksik, lvrabec, mhradile, mmalik, nknazeko, plautrba, ssekidde, zpytela
Target Milestone: betaKeywords: Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.14.3-94.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2062607 (view as bug list) Environment:
Last Closed: 2022-05-10 15:14:58 UTC Type: Bug
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: 1969483, 2062607    

Comment 3 Zdenek Pytela 2021-06-28 10:06:27 UTC
Looks like only a half of the communication was allowed:
# sesearch -A -s abrt_t -t sosreport_t -c dbus -p send_msg
# sesearch -A -s timedatex_t -t sosreport_t -c dbus -p send_msg
# sesearch -A -s chronyd_t -t sosreport_t -c unix_dgram_socket -p sendto
# sesearch -A -s chronyd_t -t sosreport_t -c unix_dgram_socket

# sesearch -A -s sosreport_t -t abrt_t -c dbus -p send_msg
allow dbusd_unconfined nsswitch_domain:dbus send_msg;
allow dbusd_unconfined system_bus_type:dbus send_msg;
# sesearch -A -s sosreport_t -t timedatex_t -c dbus -p send_msg
allow dbusd_unconfined timedatex_t:dbus send_msg;
# sesearch -A -s sosreport_t -t chronyd_t -c unix_dgram_socket -p sendto
allow unconfined_domain_type domain:unix_dgram_socket { accept append bind connect create getattr getopt ioctl listen lock map name_bind read recv_msg recvfrom relabelfrom relabelto send_msg sendto setattr setopt shutdown write };

Comment 7 Zdenek Pytela 2021-10-01 10:16:50 UTC
Davide,

Can you help us get the tests to reproduce the issues?

Comment 13 Zdenek Pytela 2022-02-14 12:31:05 UTC
The output shortened:
allow abrt_t sosreport_t:dbus send_msg;
allow systemd_logind_t sosreport_t:dbus send_msg;
allow timedatex_t sosreport_t:dbus send_msg;

Comment 14 Zdenek Pytela 2022-02-22 12:33:03 UTC
Commit to backport:
commit 37dbb1e7b5944a1cceb2009f8bbb4897150fd1ef (HEAD -> rawhide, upstream/rawhide)
Author: Nikola Knazekova <nknazeko>
Date:   Tue Feb 22 09:48:33 2022 +0100

    Allow sosreport dbus chat abrt systemd timedatex

    Create sosreport dbus chat interface.

    Allow abrt, systemd and timedatex to dbus chat sosreport

Comment 19 Zdenek Pytela 2022-02-28 11:20:59 UTC
These two additional commits need to be backported:

commit 676fdceecce7f6e31c7ffdd9ecebb579fb7e4fb6 (HEAD -> rawhide, upstream/rawhide)
Author: Zdenek Pytela <zpytela>
Date:   Thu Feb 24 12:29:52 2022 +0100

    Allow systemd-logind dbus chat with sosreport

commit 05e940f535497768c2b4a8c37365b5b5156eda75
Author: Zdenek Pytela <zpytela>
Date:   Fri Feb 25 14:16:52 2022 +0100

    Allow chronyd send a message to sosreport over datagram socket

Comment 33 errata-xmlrpc 2022-05-10 15:14:58 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 (selinux-policy bug fix and enhancement update), 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-2022:1995