]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/kmod.c
[PATCH] introduce kernel_execve
[net-next-2.6.git] / kernel / kmod.c
index f8121b95183f3c58502e1cacf6b25c1285ebecc3..bb4e29d924e4ff29567a962e7b643e0c1c875896 100644 (file)
@@ -18,8 +18,6 @@
        call_usermodehelper wait flag, and remove exec_usermodehelper.
        Rusty Russell <rusty@rustcorp.com.au>  Jan 2003
 */
-#define __KERNEL_SYSCALLS__
-
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/syscalls.h>
@@ -169,7 +167,8 @@ static int ____call_usermodehelper(void *data)
 
        retval = -EPERM;
        if (current->fs->root)
-               retval = execve(sub_info->path, sub_info->argv, sub_info->envp);
+               retval = kernel_execve(sub_info->path,
+                               sub_info->argv, sub_info->envp);
 
        /* Exec failed? */
        sub_info->retval = retval;