summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/module.h
diff options
context:
space:
mode:
authorRusty Russell2012-10-22 09:39:41 +0200
committerRusty Russell2012-12-14 03:35:23 +0100
commit2f3238aebedb243804f58d62d57244edec4149b2 (patch)
tree984f7f4a6b2225649120c55a7b89e65e9de55ee2 /include/uapi/linux/module.h
parentmodule: add syscall to load module from fd (diff)
downloadkernel-qcow2-linux-2f3238aebedb243804f58d62d57244edec4149b2.tar.gz
kernel-qcow2-linux-2f3238aebedb243804f58d62d57244edec4149b2.tar.xz
kernel-qcow2-linux-2f3238aebedb243804f58d62d57244edec4149b2.zip
module: add flags arg to sys_finit_module()
Thanks to Michael Kerrisk for keeping us honest. These flags are actually useful for eliminating the only case where kmod has to mangle a module's internals: for overriding module versioning. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Lucas De Marchi <lucas.demarchi@profusion.mobi> Acked-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/uapi/linux/module.h')
-rw-r--r--include/uapi/linux/module.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/module.h b/include/uapi/linux/module.h
new file mode 100644
index 000000000000..38da4258b12f
--- /dev/null
+++ b/include/uapi/linux/module.h
@@ -0,0 +1,8 @@
+#ifndef _UAPI_LINUX_MODULE_H
+#define _UAPI_LINUX_MODULE_H
+
+/* Flags for sys_finit_module: */
+#define MODULE_INIT_IGNORE_MODVERSIONS 1
+#define MODULE_INIT_IGNORE_VERMAGIC 2
+
+#endif /* _UAPI_LINUX_MODULE_H */