Bug 1699459 - SELinux is preventing modprobe from 'read' accesses on the file modules.alias.bin.
Summary: SELinux is preventing modprobe from 'read' accesses on the file modules.alias...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f9615d681cd67c9666079d4c930...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-12 19:03 UTC by Mai Ling
Modified: 2019-04-27 21:27 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.14.3-31.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-27 21:27:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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