Re: virtualbox /proc/modules warning

Peter Volkov <[email protected]>
Newsgroups gmane.linux.gentoo.hardened
Message-ID <[email protected]>
В Чт, 12/09/2013 в 17:45 +0300, Alex Efros пишет:
> Each time any of VirtualBox commands started it print this useless warning:
> 
> ---cut---
> libkmod: kmod_module_new_from_loaded: could not open /proc/modules: Permission denied
> Error: could not get list of modules: Permission denied
> WARNING: The VirtualBox kernel modules are not loaded.
>          Please load all the needed kernel modules by:
> 
>            for m in vbox{drv,netadp,netflt}; do modprobe $m; done
> 
>          You will not be able to start VMs until this problem is fixed.
> ---cut---
> 
> Of course, modules are loaded, but non-root users can't access
> /proc/modules because of GrSecurity. So, VirtualBox works fine, but this
> multiline warning really annoying. Is it possible to somehow switch it off?

There are other use-cases where this warning is useless, like running
virtualbox inside openvz container :) /usr/bin/VirtualBox binary is a
shell script that you can easy modify to avoid this warning. That said I
don't think it's worth to have such patch in portage tree - just apply
it locally.

--
Peter.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.