Gentoo Archives: gentoo-hardened

From: Peter Volkov <pva@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] virtualbox /proc/modules warning
Date: Fri, 13 Sep 2013 20:16:09
Message-Id: 1379103380.21682.2.camel@i7.hotspot.s-bit.nl
In Reply to: [gentoo-hardened] virtualbox /proc/modules warning by Alex Efros
1 В Чт, 12/09/2013 в 17:45 +0300, Alex Efros пишет:
2 > Each time any of VirtualBox commands started it print this useless warning:
3 >
4 > ---cut---
5 > libkmod: kmod_module_new_from_loaded: could not open /proc/modules: Permission denied
6 > Error: could not get list of modules: Permission denied
7 > WARNING: The VirtualBox kernel modules are not loaded.
8 > Please load all the needed kernel modules by:
9 >
10 > for m in vbox{drv,netadp,netflt}; do modprobe $m; done
11 >
12 > You will not be able to start VMs until this problem is fixed.
13 > ---cut---
14 >
15 > Of course, modules are loaded, but non-root users can't access
16 > /proc/modules because of GrSecurity. So, VirtualBox works fine, but this
17 > multiline warning really annoying. Is it possible to somehow switch it off?
18
19 There are other use-cases where this warning is useless, like running
20 virtualbox inside openvz container :) /usr/bin/VirtualBox binary is a
21 shell script that you can easy modify to avoid this warning. That said I
22 don't think it's worth to have such patch in portage tree - just apply
23 it locally.
24
25 --
26 Peter.

Replies

Subject Author
Re: [gentoo-hardened] virtualbox /proc/modules warning Alex Efros <powerman@××××××××.name>