Bug 1427896

Summary: modprobe doesn't work
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, pmoore, ssekidde, sudhir
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-28 14:15:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Škarvada 2017-03-01 13:21:46 UTC
Description of problem:
I am not allowed to modprobe module from the command line, which seems strange.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-225.10.fc25.noarch

How reproducible:
Always

Steps to Reproduce:
1. modprobe vboxdrv
2. setenforce 0
3. modprobe vboxdrv
4. echo $?

Actual results:
modprobe: ERROR: could not insert 'vboxdrv': Permission denied
0

Expected results:
0

Additional info:
Why I am not allowed to modprobe the module from the command line? Shouldn't it run as unconfined? It's not service.

Comment 1 Jaroslav Škarvada 2017-03-01 13:23:09 UTC
I.e.:
# setenforce 1
# modprobe vboxdrv
modprobe: ERROR: could not insert 'vboxdrv': Permission denied
# setenforce 0
# modprobe vboxdrv

# lsmod | grep vboxdrv
vboxdrv               434176  0

Comment 2 Jaroslav Škarvada 2017-03-01 13:24:21 UTC
type=AVC msg=audit(1488374245.943:319): avc:  denied  { module_load } for  pid=26087 comm="modprobe" path="/usr/lib/modules/4.9.11-200.fc25.x86_64/extra/VirtualBox/vboxdrv.ko" dev="dm-3" ino=2534 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:modules_object_t:s0 tclass=system permissive=1

Comment 3 Jaroslav Škarvada 2017-03-03 11:55:14 UTC
Also systemd-modules-load.service is failing due to this bug.

Comment 4 Jaroslav Škarvada 2017-03-03 11:55:54 UTC
Tagged as regression, because it worked in the past.

Comment 5 Lukas Vrabec 2017-04-28 14:15:04 UTC

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