process.c (f46a6804135795f77d096ab0128f27531c7d051c) | process.c (c7887325230aec47d47a32562a6e26014a0fafca) |
---|---|
1#include <linux/errno.h> 2#include <linux/kernel.h> 3#include <linux/mm.h> 4#include <linux/smp.h> 5#include <linux/prctl.h> 6#include <linux/slab.h> 7#include <linux/sched.h> 8#include <linux/module.h> --- 287 unchanged lines hidden (view full) --- 296 /* Ok, create the new process.. */ 297 return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, ®s, 0, NULL, NULL); 298} 299EXPORT_SYMBOL(kernel_thread); 300 301/* 302 * sys_execve() executes a new program. 303 */ | 1#include <linux/errno.h> 2#include <linux/kernel.h> 3#include <linux/mm.h> 4#include <linux/smp.h> 5#include <linux/prctl.h> 6#include <linux/slab.h> 7#include <linux/sched.h> 8#include <linux/module.h> --- 287 unchanged lines hidden (view full) --- 296 /* Ok, create the new process.. */ 297 return do_fork(flags | CLONE_VM | CLONE_UNTRACED, 0, ®s, 0, NULL, NULL); 298} 299EXPORT_SYMBOL(kernel_thread); 300 301/* 302 * sys_execve() executes a new program. 303 */ |
304long sys_execve(char __user *name, char __user * __user *argv, | 304long sys_execve(const char __user *name, char __user * __user *argv, |
305 char __user * __user *envp, struct pt_regs *regs) 306{ 307 long error; 308 char *filename; 309 310 filename = getname(name); 311 error = PTR_ERR(filename); 312 if (IS_ERR(filename)) --- 361 unchanged lines hidden --- | 305 char __user * __user *envp, struct pt_regs *regs) 306{ 307 long error; 308 char *filename; 309 310 filename = getname(name); 311 error = PTR_ERR(filename); 312 if (IS_ERR(filename)) --- 361 unchanged lines hidden --- |