summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-10-22 11:39:41 +0400
committerRusty Russell <rusty@rustcorp.com.au>2012-12-14 06:35:23 +0400
commit2f3238aebedb243804f58d62d57244edec4149b2 (patch)
tree984f7f4a6b2225649120c55a7b89e65e9de55ee2 /include/uapi
parent34e1169d996ab148490c01b65b4ee371cf8ffba2 (diff)
downloadlinux-2f3238aebedb243804f58d62d57244edec4149b2.tar.xz
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')
-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 */