Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1973759 - SELinux is preventing mdadm from 'open' accesses on the directory /dev/dma_heap.
Summary: SELinux is preventing mdadm from 'open' accesses on the directory /dev/dma_heap.
Status: CLOSED DUPLICATE of bug 1965743
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 33
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:9d932f9870e346cf03c7700eb2e...
Depends On:
TreeView+ depends on / blocked
Reported: 2021-06-18 16:24 UTC by ochal
Modified: 2021-06-18 19:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-06-18 19:10:23 UTC
Type: ---

Attachments (Terms of Use)

Description ochal 2021-06-18 16:24:40 UTC
Description of problem:
SELinux is preventing mdadm from 'open' accesses on the directory /dev/dma_heap.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that mdadm should be allowed open access on the dma_heap directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'mdadm' --raw | audit2allow -M my-mdadm
# semodule -X 300 -i my-mdadm.pp

Additional Information:
Source Context                system_u:system_r:mdadm_t:s0
Target Context                system_u:object_r:dma_device_t:s0
Target Objects                /dev/dma_heap [ dir ]
Source                        mdadm
Source Path                   mdadm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.6-38.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-38.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.12.10-200.fc33.x86_64 #1 SMP Thu
                              Jun 10 14:19:48 UTC 2021 x86_64 x86_64
Alert Count                   2
First Seen                    2021-06-18 09:00:10 CEST
Last Seen                     2021-06-18 18:16:53 CEST
Local ID                      00f8b7aa-d4ea-47f6-bcbf-938ac5414487

Raw Audit Messages
type=AVC msg=audit(1624033013.270:137): avc:  denied  { open } for  pid=1118 comm="mdadm" path="/dev/dma_heap" dev="devtmpfs" ino=200 scontext=system_u:system_r:mdadm_t:s0 tcontext=system_u:object_r:dma_device_t:s0 tclass=dir permissive=0

Hash: mdadm,mdadm_t,dma_device_t,dir,open

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.12.10-200.fc33.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-06-18 19:10:23 UTC

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

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