busybox/modutils
Mike Frysinger 3a45b87ac3 modutils: support finit_module syscall
On some systems like Chromium OS, loading modules from non-verified
filesystems is denied.  Only finit_module is allowed because an open
fd is passed which can be checked against a verified location.

Change the module loading code to first attempt finit_module and if
that fails for whatever reason, fall back to the existing logic.

On x86_64, this adds ~80 bytes to modutils/modutils.o and ~68 bytes
to modutils/modprobe-small.o.

Signed-off-by: Mike Frysinger <vapier@chromium.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-09-15 12:16:33 +02:00
..
Config.src MODPROBE_SMALL is not experimental anymore 2015-10-24 04:13:16 +02:00
depmod_process.sh
depmod.c modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
insmod.c modprobe-small: fix help messages for aliased module-related applets 2014-04-19 15:04:39 +02:00
Kbuild.src *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
lsmod.c mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo 2011-01-18 13:58:01 +01:00
modinfo.c modinfo: fix "-F firmware", add "intree" field display 2015-10-28 18:07:46 +01:00
modprobe-small.c modutils: support finit_module syscall 2016-09-15 12:16:33 +02:00
modprobe.c modprobe: skip non-.conf files only in subdirectories 2016-03-29 19:23:55 +02:00
modutils-24.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
modutils.c modutils: support finit_module syscall 2016-09-15 12:16:33 +02:00
modutils.h modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
rmmod.c rmmod: fix bad error message 2015-10-24 04:17:04 +02:00