Bug 1778022 - SELinux is preventing (coredump) from 'mounton' accesses on the file /run/systemd/unit-root/proc/kmsg.
Summary: SELinux is preventing (coredump) from 'mounton' accesses on the file /run/sys...
Keywords:
Status: CLOSED DUPLICATE of bug 1775882
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1a8bb3e8599e4943c98797c3bf8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-29 03:41 UTC by Mikhail
Modified: 2019-11-29 12:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-29 12:56:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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