Gentoo Archives: gentoo-hardened

From: Alex Efros <powerman@××××××××.name>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] virtualbox /proc/modules warning
Date: Fri, 13 Sep 2013 21:46:39
Message-Id: 20130913214634.GA1945@home.power
In Reply to: Re: [gentoo-hardened] virtualbox /proc/modules warning by Peter Volkov
1 Hi!
2
3 On Sat, Sep 14, 2013 at 12:16:20AM +0400, Peter Volkov wrote:
4 > There are other use-cases where this warning is useless, like running
5 > virtualbox inside openvz container :) /usr/bin/VirtualBox binary is a
6 > shell script that you can easy modify to avoid this warning. That said I
7 > don't think it's worth to have such patch in portage tree - just apply
8 > it locally.
9
10 Why is that? How such patch may harm anything?
11
12 --- /opt/VirtualBox/VBox.sh.old 2013-09-14 00:45:13.873137602 +0300
13 +++ /opt/VirtualBox/VBox.sh 2013-09-14 00:45:17.553137565 +0300
14 @@ -32,7 +32,7 @@
15
16 if [ "$1" = "shutdown" ]; then
17 SHUTDOWN="true"
18 -elif ! lsmod|grep -q vboxdrv; then
19 +elif [ -r /proc/modules ] && ! lsmod|grep -q vboxdrv; then
20 cat << EOF
21 WARNING: The VirtualBox kernel modules are not loaded.
22 Please load all the needed kernel modules by:
23
24
25 --
26 WBR, Alex.

Replies

Subject Author
Re: [gentoo-hardened] virtualbox /proc/modules warning Peter Volkov <pva@g.o>