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 1974875

Summary: SELinux is preventing /usr/sbin/virtlockd from create access on the directory lockd
Product: Red Hat Enterprise Linux 9 Reporter: Zdenek Pytela <zpytela>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.0CC: lvrabec, mmalik, nknazeko, plautrba, ssekidde, yafu, zpytela
Target Milestone: betaKeywords: Triaged
Target Release: 9.0 BetaFlags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-34.1.10-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1941464 Environment:
Last Closed: 2021-12-07 21:35:16 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: 1941464    
Bug Blocks:    

Comment 1 Zdenek Pytela 2021-06-22 17:04:31 UTC
The bz#1969209 does not address the directory lockd issue. The test reports:


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   bz#1941464
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 10:51:51 ] :: [   PASS   ] :: Result of matchpathcon /usr/sbin/virtlockd should contain virtlogd_exec_t (Assert: expected 0, got 0)
:: [ 10:51:53 ] :: [   PASS   ] :: Result of matchpathcon /var/lib/libvirt should contain virt_var_lib_t (Assert: expected 0, got 0)
:: [ 10:51:55 ] :: [   PASS   ] :: Result of matchpathcon /var/lib/libvirt/lockd should contain virt_var_lockd_t (Assert: expected 0, got 0)
:: [ 10:52:01 ] :: [   FAIL   ] :: Command 'sesearch -s virtlogd_t -t virt_var_lib_t -c dir -T | grep 'virt_var_lockd_t.*lockd'' (Expected 0, got 1)
:: [ 10:52:01 ] :: [   INFO   ] :: rlSESearchRule: checking rule 'allow virtlogd_t virt_var_lockd_t : dir { create } [ ]'
:: [ 10:52:06 ] :: [   PASS   ] ::   check permission 'create' is present (Assert: '0' should equal '0')
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 16s
::   Assertions: 4 good, 1 bad
::   RESULT: FAIL (bz#1941464)


This commit needs to be backported to RHEL 9, too:

commit f83261b20273c167520949c5a9e8b38ac9a18f93
Author: Nikola Knazekova <nknazeko>
Date:   Tue Apr 27 15:04:44 2021 +0200

    Allow virtlogd_t to create virt_var_lockd_t dir