Bug 1699559 - Selinux prevents loading kernel modules
Summary: Selinux prevents loading kernel modules
Keywords:
Status: CLOSED DUPLICATE of bug 1698200
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-13 16:27 UTC by taaem
Modified: 2020-05-13 15:50 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-14 13:58:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description taaem 2019-04-13 16:27:06 UTC
Description of problem:
systemd-modules-load fails to load the fuse module with the following error:
Apr 13 18:23:40 x1 systemd[1]: Starting Load Kernel Modules...
Apr 13 18:23:40 x1 audit[5124]: AVC avc:  denied  { read } for  pid=5124 comm="systemd-modules" name="modules.softdep" dev="dm-1" ino=2363896 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0
Apr 13 18:23:40 x1 audit[5124]: AVC avc:  denied  { read } for  pid=5124 comm="systemd-modules" name="modules.dep.bin" dev="dm-1" ino=2369543 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0
Apr 13 18:23:40 x1 audit[5124]: AVC avc:  denied  { read } for  pid=5124 comm="systemd-modules" name="modules.dep.bin" dev="dm-1" ino=2369543 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0
Apr 13 18:23:40 x1 audit[5124]: AVC avc:  denied  { read } for  pid=5124 comm="systemd-modules" name="modules.alias.bin" dev="dm-1" ino=2363893 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0
Apr 13 18:23:40 x1 systemd-modules-load[5124]: Failed to lookup module alias 'fuse': Function not implemented
Apr 13 18:23:40 x1 systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
Apr 13 18:23:40 x1 systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
Apr 13 18:23:40 x1 systemd[1]: Failed to start Load Kernel Modules.

If I turn of Selinux everything loads fine, but with it enabled it fails.

Version-Release number of selected component (if applicable):
30

How reproducible:
Always

Steps to Reproduce:
1. Turn Selinux on
2. restart the systemd service

Actual results:
Fails to run the service and load the kernel modules.

Expected results:
Should run fine and load all kernel modules.

Comment 1 taaem 2019-04-14 13:58:47 UTC

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


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