Bug 1775883

Summary: SELinux is preventing (imedated) from 'mounton' accesses on the fichier /run/systemd/unit-root/proc/kmsg.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
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:49489246e1fbe661faac6f0113cc19cde2017e0990af8b4a11a77dea4521d2de;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-25 17:41:14 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 Nicolas Mailhot 2019-11-23 08:12:32 UTC
Description of problem:
SELinux is preventing (imedated) from 'mounton' accesses on the fichier /run/systemd/unit-root/proc/kmsg.

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

Si vous pensez que (imedated) devrait être autorisé à accéder mounton sur kmsg file par défaut.
Then vous devriez rapporter ceci en tant qu'anomalie.
Vous pouvez générer un module de stratégie local pour autoriser cet accès.
Do
autoriser cet accès pour le moment en exécutant :
# ausearch -c "(imedated)" --raw | audit2allow -M my-imedated
# semodule -X 300 -i my-imedated.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                        (imedated)
Source Path                   (imedated)
Port                          <Inconnu>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.5-16.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.4.0-0.rc6.git0.1.fc32.x86_64 #1
                              SMP Mon Nov 4 16:37:09 UTC 2019 x86_64 x86_64
Alert Count                   3
First Seen                    2019-11-22 18:09:04 CET
Last Seen                     2019-11-23 09:11:25 CET
Local ID                      ac47105e-9a26-4f55-af0a-5769ba26af71

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


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

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.11.3
hashmarkername: setroubleshoot
kernel:         5.4.0-0.rc6.git0.1.fc32.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2019-11-25 08:34:12 UTC
*** Bug 1775884 has been marked as a duplicate of this bug. ***

Comment 2 Lukas Vrabec 2019-11-25 17:41:14 UTC

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