forked from luck/tmp_suning_uos_patched
hexagon: switch to generic sys_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9952185554
commit
27aedbd52f
@ -27,5 +27,6 @@
|
||||
*/
|
||||
|
||||
#define sys_mmap2 sys_mmap_pgoff
|
||||
#define __ARCH_WANT_SYS_EXECVE
|
||||
|
||||
#include <asm-generic/unistd.h>
|
||||
|
@ -35,25 +35,6 @@
|
||||
* See signal.c for signal-related system call wrappers.
|
||||
*/
|
||||
|
||||
asmlinkage int sys_execve(char __user *ufilename,
|
||||
const char __user *const __user *argv,
|
||||
const char __user *const __user *envp)
|
||||
{
|
||||
struct pt_regs *pregs = current_pt_regs();
|
||||
struct filename *filename;
|
||||
int retval;
|
||||
|
||||
filename = getname(ufilename);
|
||||
retval = PTR_ERR(filename);
|
||||
if (IS_ERR(filename))
|
||||
return retval;
|
||||
|
||||
retval = do_execve(filename->name, argv, envp, pregs);
|
||||
putname(filename);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
|
||||
unsigned long parent_tidp, unsigned long child_tidp)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user