Bug 1699459

Summary: SELinux is preventing modprobe from 'read' accesses on the file modules.alias.bin.
Product: [Fedora] Fedora Reporter: Mai Ling <mailinglists35>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: dwalsh, lvrabec, mgrepl, michael.scheiffler, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f9615d681cd67c9666079d4c9307a3a07e593e2e35a175c4e056f606ae5490c3;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.14.3-31.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-27 21:27:04 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 Mai Ling 2019-04-12 19:03:42 UTC
Description of problem:
appeared when dkms modules were rebuilt after rebooting into a upgraded kernel
SELinux is preventing modprobe from 'read' accesses on the file modules.alias.bin.

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

If you believe that modprobe should be allowed read access on the modules.alias.bin 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 'modprobe' --raw | audit2allow -M my-modprobe
# semodule -X 300 -i my-modprobe.pp

Additional Information:
Source Context                system_u:system_r:tlp_t:s0
Target Context                system_u:object_r:modules_dep_t:s0
Target Objects                modules.alias.bin [ file ]
Source                        modprobe
Source Path                   modprobe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.3-28.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.1.0-0.rc4.git2.2.fc31.x86_64 #1
                              SMP Wed Apr 10 16:14:25 UTC 2019 x86_64 x86_64
Alert Count                   4
First Seen                    2019-04-12 22:02:02 EAT
Last Seen                     2019-04-12 22:02:02 EAT
Local ID                      d0d17d87-8a82-49ac-ac2d-123ebd16e310

Raw Audit Messages
type=AVC msg=audit(1555095722.731:613): avc:  denied  { read } for  pid=1671 comm="modprobe" name="modules.alias.bin" dev="dm-3" ino=224798 scontext=system_u:system_r:tlp_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0


Hash: modprobe,tlp_t,modules_dep_t,file,read

Version-Release number of selected component:
selinux-policy-3.14.3-28.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.1.0-0.rc4.git2.2.fc31.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2019-04-13 11:49:37 UTC
commit 45a86a17fad654f6b67d1a659769eebd0f62c36c (HEAD -> rawhide)
Author: Lukas Vrabec <lvrabec>
Date:   Sat Apr 13 13:49:17 2019 +0200

    Allow tlp_t domain to read module deps files BZ(1699459)

Comment 2 Fedora Update System 2019-04-19 21:58:36 UTC
selinux-policy-3.14.3-31.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3055c546d6

Comment 3 Fedora Update System 2019-04-20 14:42:16 UTC
selinux-policy-3.14.3-31.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3055c546d6

Comment 4 Fedora Update System 2019-04-27 21:27:04 UTC
selinux-policy-3.14.3-31.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.