merge newfstat variants
[trinity.git] / syscalls / finit_module.c
blob4a931ea12ca567e07c40ddf49167c45bdfcd42dc
1 /*
2 * SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags)
3 */
4 #include "sanitise.h"
6 #define MODULE_INIT_IGNORE_MODVERSIONS 1
7 #define MODULE_INIT_IGNORE_VERMAGIC 2
9 struct syscallentry syscall_finit_module = {
10 .name = "finit_module",
11 .num_args = 3,
12 .flags = CAPABILITY_CHECK,
13 .arg1name = "fd",
14 .arg1type = ARG_FD,
15 .arg2name = "uargs",
16 .arg2type = ARG_ADDRESS,
17 .arg3name = "flags",
18 .arg3type = ARG_LIST,
19 .arg3list = {
20 .num = 2,
21 .values = { MODULE_INIT_IGNORE_MODVERSIONS, MODULE_INIT_IGNORE_VERMAGIC },