diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kmod.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index f8121b95183f..bb4e29d924e4 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -18,8 +18,6 @@ | |||
18 | call_usermodehelper wait flag, and remove exec_usermodehelper. | 18 | call_usermodehelper wait flag, and remove exec_usermodehelper. |
19 | Rusty Russell <rusty@rustcorp.com.au> Jan 2003 | 19 | Rusty Russell <rusty@rustcorp.com.au> Jan 2003 |
20 | */ | 20 | */ |
21 | #define __KERNEL_SYSCALLS__ | ||
22 | |||
23 | #include <linux/module.h> | 21 | #include <linux/module.h> |
24 | #include <linux/sched.h> | 22 | #include <linux/sched.h> |
25 | #include <linux/syscalls.h> | 23 | #include <linux/syscalls.h> |
@@ -169,7 +167,8 @@ static int ____call_usermodehelper(void *data) | |||
169 | 167 | ||
170 | retval = -EPERM; | 168 | retval = -EPERM; |
171 | if (current->fs->root) | 169 | if (current->fs->root) |
172 | retval = execve(sub_info->path, sub_info->argv, sub_info->envp); | 170 | retval = kernel_execve(sub_info->path, |
171 | sub_info->argv, sub_info->envp); | ||
173 | 172 | ||
174 | /* Exec failed? */ | 173 | /* Exec failed? */ |
175 | sub_info->retval = retval; | 174 | sub_info->retval = retval; |