VirtualBox

Ignore:
Timestamp:
Mar 11, 2024 5:53:04 PM (14 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
162158
Message:

Linux Host: Add possiblity to prevent kernel modules from loading in kernel command line, bugref:8409.

Add to kernel command line either vboxdrv.disabled=1 and/or vboxnetadp.disabled=1
and/or vboxnetflt.disabled=1 in order to prevent certain module or all of them
from loading during system boot.

Location:
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r102874 r103789  
    7474#include <VBox/vmm/pdmnetinline.h>
    7575#include <VBox/param.h>
     76#include <VBox/VBoxLnxModInline.h>
    7677#include <iprt/alloca.h>
    7778#include <iprt/assert.h>
     
    274275{
    275276    int rc;
     277
     278    /* Check if modue loading was disabled. */
     279    if (!vbox_mod_should_load())
     280        return -EINVAL;
     281
    276282    /*
    277283     * Initialize IPRT.
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/files_vboxnetflt

    r103007 r103789  
    9090    ${PATH_ROOT}/include/VBox/types.h=>include/VBox/types.h \
    9191    ${PATH_ROOT}/include/VBox/SUPDrvMangling.h=>include/VBox/SUPDrvMangling.h \
     92    ${PATH_ROOT}/include/VBox/VBoxLnxModInline.h=>include/VBox/VBoxLnxModInline.h \
    9293    ${PATH_ROOT}/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c=>linux/VBoxNetFlt-linux.c \
    9394    ${PATH_ROOT}/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c=>VBoxNetFlt.c \
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette