Bug 2039986

Summary: SELinux is preventing (sd-parse-elf) from 'mounton' accesses on the directory /.
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, pkoncity, vmojzis, zawertun, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:4755155335d23d687ece506fc810f78ab4fed2990f2d7be60dfc69f112ba24a2;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-14 08:05:41 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 2022-01-12 20:57:43 UTC
Description of problem:
SELinux is preventing (sd-parse-elf) from 'mounton' accesses on the directory /.

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

If you believe that (sd-parse-elf) should be allowed mounton access on the  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 '(sd-parse-elf)' --raw | audit2allow -M my-sdparseelf
# semodule -X 300 -i my-sdparseelf.pp

Additional Information:
Source Context                system_u:system_r:systemd_coredump_t:s0
Target Context                system_u:object_r:root_t:s0
Target Objects                / [ dir ]
Source                        (sd-parse-elf)
Source Path                   (sd-parse-elf)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           filesystem-3.16-1.fc36.x86_64
SELinux Policy RPM            selinux-policy-targeted-35.8-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-35.8-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.17.0-
                              0.rc0.20220112gitdaadb3bd0e8d.63.fc36.x86_64 #1
                              SMP PREEMPT Wed Jan 12 18:54:57 UTC 2022 x86_64
                              x86_64
Alert Count                   9
First Seen                    2022-01-11 22:24:51 +05
Last Seen                     2022-01-13 01:54:14 +05
Local ID                      fa5ba04c-b95d-4006-860a-e6194deb22a7

Raw Audit Messages
type=AVC msg=audit(1642020854.294:376): avc:  denied  { mounton } for  pid=24673 comm="(sd-parse-elf)" path="/" dev="nvme0n1p2" ino=2 scontext=system_u:system_r:systemd_coredump_t:s0 tcontext=system_u:object_r:root_t:s0 tclass=dir permissive=1


Hash: (sd-parse-elf),systemd_coredump_t,root_t,dir,mounton

Version-Release number of selected component:
selinux-policy-targeted-35.8-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.17.0-0.rc0.20220112gitdaadb3bd0e8d.63.fc36.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-01-14 08:05:41 UTC

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