Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1490015 - SELinux is preventing systemd-modules from 'map' accesses on the file /usr/lib/modules/4.13.0-1.fc27.x86_64/extra/VirtualBox/vboxdrv.ko.
Summary: SELinux is preventing systemd-modules from 'map' accesses on the file /usr/li...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:90b07b630c0e2ba4a7a26ed2b80...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-09 06:25 UTC by lonelywoolf
Modified: 2020-05-13 15:32 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-283.14.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-31 15:35:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description lonelywoolf 2017-09-09 06:25:20 UTC
Description of problem:
When a building akmod for VirtualBox
SELinux is preventing systemd-modules from 'map' accesses on the file /usr/lib/modules/4.13.0-1.fc27.x86_64/extra/VirtualBox/vboxdrv.ko.

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

If вы считаете, что systemd-modules следует разрешить доступ map к vboxdrv.ko file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
allow this access for now by executing:
# ausearch -c 'systemd-modules' --raw | audit2allow -M my-systemdmodules
# semodule -X 300 -i my-systemdmodules.pp

Additional Information:
Source Context                system_u:system_r:systemd_modules_load_t:s0
Target Context                system_u:object_r:modules_object_t:s0
Target Objects                /usr/lib/modules/4.13.0-1.fc27.x86_64/extra/Virtua
                              lBox/vboxdrv.ko [ file ]
Source                        systemd-modules
Source Path                   systemd-modules
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    <Неизвестно>
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.0-1.fc27.x86_64 #1 SMP Tue
                              Sep 5 15:03:32 UTC 2017 x86_64 x86_64
Alert Count                   8
First Seen                    2017-09-09 13:22:37 +07
Last Seen                     2017-09-09 13:23:02 +07
Local ID                      672db2c6-5ade-4e0e-9cfa-a84d9bef2900

Raw Audit Messages
type=AVC msg=audit(1504938182.722:384): avc:  denied  { map } for  pid=16317 comm="systemd-modules" path="/usr/lib/modules/4.13.0-1.fc27.x86_64/extra/VirtualBox/vboxdrv.ko" dev="sda6" ino=67661922 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:modules_object_t:s0 tclass=file permissive=0


Hash: systemd-modules,systemd_modules_load_t,modules_object_t,file,map


Additional info:
component:      selinux-policy
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.0-1.fc27.x86_64
type:           libreport

Comment 1 lonelywoolf 2017-09-09 06:25:42 UTC
Description of problem:
When a building akmod for VirtualBox


Additional info:
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.0-1.fc27.x86_64
type:           libreport

Comment 2 Berend De Schouwer 2017-10-06 08:04:49 UTC
Description of problem:
start virtualbox

Version-Release number of selected component:
selinux-policy-3.13.1-283.5.fc27.noarch

Additional info:
reporter:       libreport-2.9.2
hashmarkername: setroubleshoot
kernel:         4.13.4-300.fc27.x86_64
type:           libreport

Comment 3 Fedora Update System 2017-10-25 10:12:09 UTC
selinux-policy-3.13.1-283.13.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-b5e9ce60d2

Comment 4 Fedora Update System 2017-10-27 18:45:16 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 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-2017-b5e9ce60d2

Comment 5 Fedora Update System 2017-10-31 15:35:01 UTC
selinux-policy-3.13.1-283.14.fc27 has been pushed to the Fedora 27 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.