Bug 1778022

Summary: SELinux is preventing (coredump) from 'mounton' accesses on the file /run/systemd/unit-root/proc/kmsg.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:1a8bb3e8599e4943c98797c3bf82a1627d3ca69854c4d7d394dba43a38ad7dab;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-29 12:56:27 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 2019-11-29 03:41:30 UTC
Description of problem:
SELinux is preventing (coredump) from 'mounton' accesses on the file /run/systemd/unit-root/proc/kmsg.

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

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

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:object_r:proc_kmsg_t:s0
Target Objects                /run/systemd/unit-root/proc/kmsg [ file ]
Source                        (coredump)
Source Path                   (coredump)
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.5-17.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.4.0-2.fc32.x86_64 #1 SMP Mon Nov
                              25 22:45:19 UTC 2019 x86_64 x86_64
Alert Count                   29
First Seen                    2019-11-29 08:19:25 +05
Last Seen                     2019-11-29 08:30:25 +05
Local ID                      8958d32f-6f51-496b-a9c1-2c3bd7cf1663

Raw Audit Messages
type=AVC msg=audit(1574998225.835:942): avc:  denied  { mounton } for  pid=12077 comm="(coredump)" path="/run/systemd/unit-root/proc/kmsg" dev="proc" ino=4026532031 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:proc_kmsg_t:s0 tclass=file permissive=1


Hash: (coredump),init_t,proc_kmsg_t,file,mounton

Version-Release number of selected component:
selinux-policy-3.14.5-17.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.4.0-2.fc32.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-11-29 12:56:27 UTC

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