@@ -390,20 +390,33 @@ When ``kptr_restrict`` is set to 2, kernel pointers printed using
390
390
modprobe
391
391
========
392
392
393
- This gives the full path of the modprobe command which the kernel will
394
- use to load modules. This can be used to debug module loading
395
- requests::
393
+ The full path to the usermode helper for autoloading kernel modules,
394
+ by default "/sbin/modprobe". This binary is executed when the kernel
395
+ requests a module. For example, if userspace passes an unknown
396
+ filesystem type to mount(), then the kernel will automatically request
397
+ the corresponding filesystem module by executing this usermode helper.
398
+ This usermode helper should insert the needed module into the kernel.
399
+
400
+ This sysctl only affects module autoloading. It has no effect on the
401
+ ability to explicitly insert modules.
402
+
403
+ This sysctl can be used to debug module loading requests::
396
404
397
405
echo '#! /bin/sh' > /tmp/modprobe
398
406
echo 'echo "$@" >> /tmp/modprobe.log' >> /tmp/modprobe
399
407
echo 'exec /sbin/modprobe "$@"' >> /tmp/modprobe
400
408
chmod a+x /tmp/modprobe
401
409
echo /tmp/modprobe > /proc/sys/kernel/modprobe
402
410
403
- This only applies when the *kernel * is requesting that the module be
404
- loaded; it won't have any effect if the module is being loaded
405
- explicitly using ``modprobe `` from userspace.
411
+ Alternatively, if this sysctl is set to the empty string, then module
412
+ autoloading is completely disabled. The kernel will not try to
413
+ execute a usermode helper at all, nor will it call the
414
+ kernel_module_request LSM hook.
406
415
416
+ If CONFIG_STATIC_USERMODEHELPER=y is set in the kernel configuration,
417
+ then the configured static usermode helper overrides this sysctl,
418
+ except that the empty string is still accepted to completely disable
419
+ module autoloading as described above.
407
420
408
421
modules_disabled
409
422
================
@@ -446,28 +459,6 @@ Notes:
446
459
successful IPC object allocation. If an IPC object allocation syscall
447
460
fails, it is undefined if the value remains unmodified or is reset to -1.
448
461
449
- modprobe:
450
- =========
451
-
452
- The path to the usermode helper for autoloading kernel modules, by
453
- default "/sbin/modprobe". This binary is executed when the kernel
454
- requests a module. For example, if userspace passes an unknown
455
- filesystem type to mount(), then the kernel will automatically request
456
- the corresponding filesystem module by executing this usermode helper.
457
- This usermode helper should insert the needed module into the kernel.
458
-
459
- This sysctl only affects module autoloading. It has no effect on the
460
- ability to explicitly insert modules.
461
-
462
- If this sysctl is set to the empty string, then module autoloading is
463
- completely disabled. The kernel will not try to execute a usermode
464
- helper at all, nor will it call the kernel_module_request LSM hook.
465
-
466
- If CONFIG_STATIC_USERMODEHELPER=y is set in the kernel configuration,
467
- then the configured static usermode helper overrides this sysctl,
468
- except that the empty string is still accepted to completely disable
469
- module autoloading as described above.
470
-
471
462
nmi_watchdog
472
463
============
473
464
0 commit comments