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 1990813

Summary: A "debug" directory created in /var/lib gets the ldconfig_cache_t SELinux type
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: high Docs Contact:
Priority: high    
Version: 9.0CC: bwelterl, lvrabec, mmalik, pierre-yves.goubet, pkoncity, plautrba, rmetrich, ssekidde, yferszt, zpytela
Target Milestone: betaKeywords: Reopened, Triaged
Target Release: 9.0 BetaFlags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-34.1.12-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1887739 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: 1887739    
Bug Blocks:    

Comment 1 Zdenek Pytela 2021-08-06 10:16:02 UTC
Commit to backport:

commit 0fc68a1f54d3789a30461f76f3469b6190be95dd
Author: Zdenek Pytela <zpytela>
Date:   Fri Jul 9 10:50:35 2021 +0200

    Revert "update libs_filetrans_named_content() to have support for /usr/lib/debug directory"


Fedora, RHEL 9, RHEL 8 commit:
commit bbe5ef3b83907f87c5ea8c3feb01c520af6969af
Author: Miroslav Grepl <mgrepl>
Date:   Fri Jan 24 17:18:48 2014 +0100

    update libs_filetrans_named_content() to have support for /usr/lib/debug directory

diff --git a/policy/modules/system/libraries.if b/policy/modules/system/libraries.if
index 9d8f72925..57a68dab5 100644
--- a/policy/modules/system/libraries.if
+++ b/policy/modules/system/libraries.if
@@ -571,10 +571,12 @@ interface(`files_lib_filetrans_shared_lib',`
 #
 interface(`libs_filetrans_named_content',`
        gen_require(`
+        type lib_t;
                type ld_so_cache_t;
                type ldconfig_cache_t;
        ')

+    files_var_lib_filetrans($1,ldconfig_cache_t, dir, "debug")
        files_var_filetrans($1, ldconfig_cache_t, dir, "ldconfig")
        files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.cache")
        files_etc_filetrans($1, ld_so_cache_t, file, "ld.so.cache~")