Bug 1470158 - SELinux is preventing modprobe from 'module_load' accesses on the system /usr/lib/modules/4.11.9-300.fc26.x86_64/misc/vboxdrv.ko.
SELinux is preventing modprobe from 'module_load' accesses on the system /usr...
Status: NEW
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
26
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
abrt_hash:5a9b81d7b1a23aceda766d8ff33...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-12 09:13 EDT by Pedro Lopes
Modified: 2017-07-12 13:35 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: SELinuxAlert.png (70.30 KB, application/octet-stream)
2017-07-12 09:13 EDT, Pedro Lopes
no flags Details

  None (edit)
Description Pedro Lopes 2017-07-12 09:13:19 EDT
Description of problem:
I have upgraded my Fedora 25 to Fedora 26 today.

After that, when the system started, this SELinux Alert appeared
SELinux is preventing modprobe from 'module_load' accesses on the system /usr/lib/modules/4.11.9-300.fc26.x86_64/misc/vboxdrv.ko.

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

If you believe that modprobe should be allowed module_load access on the vboxdrv.ko system 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:insmod_t:s0
Target Context                system_u:object_r:default_t:s0
Target Objects                /usr/lib/modules/4.11.9-300.fc26.x86_64/misc/vboxd
                              rv.ko [ system ]
Source                        modprobe
Source Path                   modprobe
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-07-12 12:10:39 WEST
Last Seen                     2017-07-12 12:10:39 WEST
Local ID                      dc6d8eed-7fb2-4f01-ae48-3ed685f9547e

Raw Audit Messages
type=AVC msg=audit(1499857839.795:245): avc:  denied  { module_load } for  pid=5101 comm="modprobe" path="/usr/lib/modules/4.11.9-300.fc26.x86_64/misc/vboxdrv.ko" dev="dm-0" ino=7210555 scontext=system_u:system_r:insmod_t:s0 tcontext=system_u:object_r:default_t:s0 tclass=system permissive=0


Hash: modprobe,insmod_t,default_t,system,module_load

Version-Release number of selected component:
selinux-policy-3.13.1-259.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.9-300.fc26.x86_64
type:           libreport
Comment 1 Pedro Lopes 2017-07-12 09:13:26 EDT
Created attachment 1296976 [details]
File: SELinuxAlert.png
Comment 2 Daniel Walsh 2017-07-12 13:35:30 EDT
Look like you have a badly mislabeled system.

restorecon -R -v /usr 
Should fix it.

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