diff options
-rw-r--r-- | init/Kconfig | 7 | ||||
-rw-r--r-- | kernel/kmod.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig index 5341d7232c3ac0..72eee1c89c2104 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1593,6 +1593,13 @@ menuconfig MODULES if MODULES +config DEFAULT_MODULE_LOAD_BIN + string "Default module load binary" + default "/sbin/modprobe -q --" + help + This option determines the default executable to be called when a + module is requested to be loaded via request_module(). + config MODULE_FORCE_LOAD bool "Forced module loading" default n diff --git a/kernel/kmod.c b/kernel/kmod.c index 70df90b1545447..18285429d7ab58 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -67,7 +67,7 @@ static DECLARE_RWSEM(umhelper_sem); /* modprobe_path is set via /proc/sys. */ -char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe -q --"; +char modprobe_path[KMOD_PATH_LEN] = CONFIG_DEFAULT_MODULE_LOAD_BIN; static void free_modprobe_argv(struct subprocess_info *info) { |