]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: add finit_module logic
authorKees Cook <keescook@chromium.org>
Mon, 18 Feb 2013 20:02:32 +0000 (12:02 -0800)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 19 Feb 2013 22:19:51 +0000 (19:19 -0300)
commit144d1826f1a0fcd6cc59c4535f0a8145163c640c
tree18c289b56d5a557a67d107b233071b117445901d
parent709b86346e78f18badacd269b48868f153b87383
libkmod: add finit_module logic

When a module is being loaded directly from disk (no compression, etc),
pass the file descriptor to the new finit_module() syscall. If the
finit_module syscall is exported by the kernel syscall headers, use it.
Additionally, if the kernel's module.h file is available, map kmod flags
to finit_module flags.
configure.ac
libkmod/libkmod-file.c
libkmod/libkmod-module.c
libkmod/libkmod-private.h