mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
avr32: switch to generic sys_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5adc807f70
commit
5fd0b580a9
4 changed files with 2 additions and 28 deletions
|
@ -39,6 +39,7 @@
|
||||||
#define __ARCH_WANT_SYS_GETPGRP
|
#define __ARCH_WANT_SYS_GETPGRP
|
||||||
#define __ARCH_WANT_SYS_RT_SIGACTION
|
#define __ARCH_WANT_SYS_RT_SIGACTION
|
||||||
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
||||||
|
#define __ARCH_WANT_SYS_EXECVE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "Conditional" syscalls
|
* "Conditional" syscalls
|
||||||
|
|
|
@ -349,27 +349,6 @@ asmlinkage int sys_vfork(struct pt_regs *regs)
|
||||||
0, NULL, NULL);
|
0, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
asmlinkage int sys_execve(const char __user *ufilename,
|
|
||||||
const char __user *const __user *uargv,
|
|
||||||
const char __user *const __user *uenvp,
|
|
||||||
struct pt_regs *regs)
|
|
||||||
{
|
|
||||||
int error;
|
|
||||||
struct filename *filename;
|
|
||||||
|
|
||||||
filename = getname(ufilename);
|
|
||||||
error = PTR_ERR(filename);
|
|
||||||
if (IS_ERR(filename))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
error = do_execve(filename->name, uargv, uenvp, regs);
|
|
||||||
putname(filename);
|
|
||||||
|
|
||||||
out:
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function is supposed to answer the question "who called
|
* This function is supposed to answer the question "who called
|
||||||
* schedule()?"
|
* schedule()?"
|
||||||
|
|
|
@ -50,12 +50,6 @@ __sys_vfork:
|
||||||
mov r12, sp
|
mov r12, sp
|
||||||
rjmp sys_vfork
|
rjmp sys_vfork
|
||||||
|
|
||||||
.global __sys_execve
|
|
||||||
.type __sys_execve,@function
|
|
||||||
__sys_execve:
|
|
||||||
mov r9, sp
|
|
||||||
rjmp sys_execve
|
|
||||||
|
|
||||||
.global __sys_mmap2
|
.global __sys_mmap2
|
||||||
.type __sys_mmap2,@function
|
.type __sys_mmap2,@function
|
||||||
__sys_mmap2:
|
__sys_mmap2:
|
||||||
|
|
|
@ -24,7 +24,7 @@ sys_call_table:
|
||||||
.long sys_creat
|
.long sys_creat
|
||||||
.long sys_link
|
.long sys_link
|
||||||
.long sys_unlink /* 10 */
|
.long sys_unlink /* 10 */
|
||||||
.long __sys_execve
|
.long sys_execve
|
||||||
.long sys_chdir
|
.long sys_chdir
|
||||||
.long sys_time
|
.long sys_time
|
||||||
.long sys_mknod
|
.long sys_mknod
|
||||||
|
|
Loading…
Reference in a new issue