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.
Commit to backport:
commit d45bd1720adf4e9819e725082cf6925fa946e909
Author: Zdenek Pytela <zpytela>
Date: Tue Aug 24 19:40:25 2021 +0200
Allow lldpad send to unconfined_t over a unix dgram socket
A similar problem probably appears on RHEL 9.
Seems I overlooked the type actually is unconfined_service_t.
Sandro, do you know which service lldpad tries to communicate with?
ps -eo pid,ppid,fname,cmd,context | grep -e CONTEXT -e unconfined_service_t
Here are reproducing steps for the iscsi issue:
1. Have a RHV hypervisor with iscsi storage
2. Move to Maintanence
3. SSH to host and apply correct selinux rules:
chcon -t virtd_exec_t /usr/libexec/vdsm/vdsmd_init_common.sh
chcon -t virtd_exec_t /usr/libexec/vdsm/supervdsmd
chcon -t virtd_exec_t /usr/libexec/vdsm/vdsmd
chcon -t virtd_exec_t /usr/libexec/vdsm/daemonAdapter
4. Reboot host and wait to restart finished
5. Activate the host
-> after activation the host is switched to NonOperational, all iscsi storage domains report errors.
This needs to be solved before we can fix the rules in default selinux policy and ask for backport to RHEL 8.6.z
Hi,
after some investigation it seems that the iscsi was coincidence. Could you please
prepare the patch for selinux-context with following files having virtd_exec_t:
/usr/libexec/vdsm/vdsmd_init_common.sh
/usr/libexec/vdsm/supervdsmd
/usr/libexec/vdsm/vdsmd
/usr/libexec/vdsm/daemonAdapter
We will also need 8.6 backport.
Thanks
(In reply to Ales Musil from comment #38)
> Hi,
>
> after some investigation it seems that the iscsi was coincidence. Could you
> please
> prepare the patch for selinux-context with following files having
> virtd_exec_t:
> /usr/libexec/vdsm/vdsmd_init_common.sh
> /usr/libexec/vdsm/supervdsmd
> /usr/libexec/vdsm/vdsmd
> /usr/libexec/vdsm/daemonAdapter
>
> We will also need 8.6 backport.
The fix is on the way and should be in the next build. For a backport, please follow z-stream workflow.
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:7691
Description of problem: On CentOS Stream 8 based oVirt Node: type=AVC msg=audit(1647266624.393:922): avc: denied { sendto } for pid=22657 comm="lldpad" path=002F636F6D2F696E74656C2F6C6C647061642F3232393931 scontext=system_u:system_r:lldpad_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_dgram_socket permissive=0 type=AVC msg=audit(1647266757.171:105): avc: denied { sendto } for pid=2295 comm="lldpad" path=002F636F6D2F696E74656C2F6C6C647061642F32373937 scontext=system_u:system_r:lldpad_t:s0 tcontext=system_u:system_r:unconfined_service_t:s0 tclass=unix_dgram_socket permissive=0 Version-Release number of selected component (if applicable): # rpm -qa |grep selinux selinux-policy-3.14.3-93.el8.noarch selinux-policy-targeted-3.14.3-93.el8.noarch ipa-selinux-4.9.8-2.module_el8.6.0+1054+cdb51b28.noarch libselinux-utils-2.9-5.el8.x86_64 openvswitch-selinux-extra-policy-1.0-28.el8.noarch glusterfs-selinux-2.0.1-1.el8s.noarch rpm-plugin-selinux-4.14.3-22.el8.x86_64 libselinux-2.9-5.el8.x86_64 python3-libselinux-2.9-5.el8.x86_64 # rpm -qa |grep lldpad lldpad-1.0.1-16.git036e314.el8.x86_64