Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1ffbed72
Commit
1ffbed72
authored
Oct 15, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
score: switch to generic sys_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1856ab6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
30 deletions
+1
-30
arch/score/include/asm/syscalls.h
arch/score/include/asm/syscalls.h
+0
-1
arch/score/include/asm/unistd.h
arch/score/include/asm/unistd.h
+1
-0
arch/score/kernel/entry.S
arch/score/kernel/entry.S
+0
-5
arch/score/kernel/sys_score.c
arch/score/kernel/sys_score.c
+0
-24
No files found.
arch/score/include/asm/syscalls.h
View file @
1ffbed72
...
...
@@ -2,7 +2,6 @@
#define _ASM_SCORE_SYSCALLS_H
asmlinkage
long
score_clone
(
struct
pt_regs
*
regs
);
asmlinkage
long
score_execve
(
struct
pt_regs
*
regs
);
asmlinkage
long
score_sigaltstack
(
struct
pt_regs
*
regs
);
asmlinkage
long
score_rt_sigreturn
(
struct
pt_regs
*
regs
);
...
...
arch/score/include/asm/unistd.h
View file @
1ffbed72
...
...
@@ -4,5 +4,6 @@
#define __ARCH_WANT_SYSCALL_NO_FLAGS
#define __ARCH_WANT_SYSCALL_OFF_T
#define __ARCH_WANT_SYSCALL_DEPRECATED
#define __ARCH_WANT_SYS_EXECVE
#include <asm-generic/unistd.h>
arch/score/kernel/entry.S
View file @
1ffbed72
...
...
@@ -487,11 +487,6 @@ illegal_syscall:
sw
r9
,
[
r0
,
PT_R7
]
j
syscall_return
ENTRY
(
sys_execve
)
mv
r4
,
r0
la
r8
,
score_execve
br
r8
ENTRY
(
sys_clone
)
mv
r4
,
r0
la
r8
,
score_clone
...
...
arch/score/kernel/sys_score.c
View file @
1ffbed72
...
...
@@ -83,27 +83,3 @@ score_vfork(struct pt_regs *regs)
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
regs
->
regs
[
0
],
regs
,
0
,
NULL
,
NULL
);
}
/*
* sys_execve() executes a new program.
* This is called indirectly via a small wrapper
*/
asmlinkage
long
score_execve
(
struct
pt_regs
*
regs
)
{
int
error
;
struct
filename
*
filename
;
filename
=
getname
((
char
__user
*
)
regs
->
regs
[
4
]);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
return
error
;
error
=
do_execve
(
filename
->
name
,
(
const
char
__user
*
const
__user
*
)
regs
->
regs
[
5
],
(
const
char
__user
*
const
__user
*
)
regs
->
regs
[
6
],
regs
);
putname
(
filename
);
return
error
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment