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 1967818

Summary: [RHEL-9.0] mdadm : avc: denied { read } for pid=7860 comm="mdadm" name="dma_heap" dev="devtmpfs"
Product: Red Hat Enterprise Linux 9 Reporter: Fine Fan <ffan>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: high    
Version: 9.0CC: bgoncalv, dledford, hwkernel-mgr, jdonohue, lvrabec, mmalik, ncroxon, plautrba, ssekidde, xiliang
Target Milestone: betaKeywords: Triaged
Target Release: 9.0 BetaFlags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-21 15:01:52 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:

Comment 1 Nigel Croxon 2021-06-07 18:57:08 UTC
This is not an mdadm program issue, but a SELinux restriction.

Check the error log, it usually tells you how to disable or allow a program access.

Comment 3 Zdenek Pytela 2021-06-21 11:34:15 UTC
Commits to revert:

488b443ad (HEAD -> rhel-9.0.0-beta, tag: v34.1.8, upstream/rhel-9.0.0-beta, upstream-rw/rhel-9.0.0-beta, origin/rhel-9.0.0-beta) Associate dma_device_dir_t with device filesystem
dee1d84e3 Label /dev/dma_heap with dma_device_dir_t
aaa133fc5 Label /dev/dma_heap/* char devices with dma_device_t

Commit to backport:
commit 85f35a10d97af810016aa668dc24f8e5bbc36596 (zpytela/rawhide, fedora-base/rawhide)
Author: Zdenek Pytela <zpytela>
Date:   Fri Jun 18 19:59:08 2021 +0200

    Label /dev/dma_heap/* char devices with dma_device_t

    In the /dev/dma_heap directory, character devices are created to
    allow userspace to allocate dma buffers that can be shared between drivers.

    The change is backed by a file transition for the "system" file;
    note the /dev/dma_heap directory keeps the default device_t type
    so the transition will apply for a "system" file anywhere in /dev.

    A new dma_device_t type was added.

    Resolves: rhbz#1970744

Comment 4 Zdenek Pytela 2021-06-21 12:22:33 UTC
*** Bug 1969323 has been marked as a duplicate of this bug. ***

Comment 5 Zdenek Pytela 2021-06-21 15:01:52 UTC

*** This bug has been marked as a duplicate of bug 1966834 ***