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 2172268 - libvirt is unable to start passt process when SELinux is enforcing
Summary: libvirt is unable to start passt process when SELinux is enforcing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.2
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 2172267 2179827
TreeView+ depends on / blocked
 
Reported: 2023-02-21 19:17 UTC by Laine Stump
Modified: 2023-05-09 10:23 UTC (History)
14 users (show)

Fixed In Version: selinux-policy-38.1.11-2.el9_2
Doc Type: No Doc Update
Doc Text:
Clone Of: 2172267
: 2179827 (view as bug list)
Environment:
Last Closed: 2023-05-09 08:17:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1629 0 None open Passt-virt support 2023-03-24 17:46:23 UTC
Github fedora-selinux selinux-policy pull 1631 0 None open Allow passt manage qemu pid sockfiles 2023-03-27 15:42:25 UTC
Red Hat Issue Tracker RHELPLAN-149618 0 None None None 2023-02-22 08:07:17 UTC
Red Hat Product Errata RHBA-2023:2483 0 None None None 2023-05-09 08:17:47 UTC

Description Laine Stump 2023-02-21 19:17:43 UTC
+++ This bug was initially created as a clone of Bug #2172267 +++

The initial implementation of passt support in libvirt doesn't have the necessary fu to be able to start the passt process when SELinux is enforcing.

Stefano Brivio (sbrivio) has come up with patches for libvirt, selinux-policy, and passt that make this work properly.


The selinux-policy changes are in a Fedora MR here:

https://github.com/fedora-selinux/selinux-policy/pull/1613

Comment 2 Zdenek Pytela 2023-02-23 08:53:04 UTC
The passt_.* interfaces are not defined in selinux-policy so the issue should rather be resolved in passt.

Comment 3 Stefano Brivio 2023-02-24 18:33:57 UTC
Hi Zdeněk,

(In reply to Zdenek Pytela from comment #2)
> The passt_.* interfaces are not defined in selinux-policy so the issue
> should rather be resolved in passt.

Indeed, the interfaces are (now) defined in the passt-selinux package. But selinux-policy needs to use them as optional policy for libvirtd, and that's what my merge request does. Please have a look at:

  https://github.com/fedora-selinux/selinux-policy/pull/1613/commits/32c47c2dea3c14d0f097b6f6e774470ccdc9b147

Comment 4 Stefano Brivio 2023-03-09 12:14:32 UTC
I updated the merge request to support the updated interfaces fixing bz2176813.

Comment 23 Zdenek Pytela 2023-03-24 17:46:24 UTC
I've submitted a Fedora PR to address the issue:
https://github.com/fedora-selinux/selinux-policy/pull/1629

It consists of 4 commits.

Comment 52 errata-xmlrpc 2023-05-09 08:17:16 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-2023:2483


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