Bug 1968054

Summary: SELinux is preventing restorecon from 'search' accesses on the directory dma_heap.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c509e1ace732238d0a87920a5c154638edab22e9e065e289fc1f88d2115441eb;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-04 19:59:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mikhail 2021-06-04 19:33:12 UTC
Description of problem:
SELinux is preventing restorecon from 'search' accesses on the directory dma_heap.

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

If you believe that restorecon should be allowed search 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.
Do
allow this access for now by executing:
# ausearch -c 'restorecon' --raw | audit2allow -M my-restorecon
# semodule -X 300 -i my-restorecon.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c102
                              3
Target Context                system_u:object_r:dma_device_t:s0
Target Objects                dma_heap [ dir ]
Source                        restorecon
Source Path                   restorecon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.9-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-34.9-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.13.0-0.rc3.20210527gitad9f25d338
                              60.28.fc35.x86_64 #1 SMP Thu May 27 16:35:38 UTC
                              2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-05-29 23:25:50 +05
Last Seen                     2021-05-29 23:25:50 +05
Local ID                      2a608916-55bd-4959-8003-5db61b92dc04

Raw Audit Messages
type=AVC msg=audit(1622312750.442:784): avc:  denied  { search } for  pid=631469 comm="restorecon" name="dma_heap" dev="devtmpfs" ino=222 scontext=unconfined_u:unconfined_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dma_device_t:s0 tclass=dir permissive=1


Hash: restorecon,setfiles_t,dma_device_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-34.9-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.13.0-0.rc3.20210527gitad9f25d33860.28.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-06-04 19:59:02 UTC

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