-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 37843 b: refs/heads/master c: 6760856 h: refs/heads/master i: 37841: 76ace0c 37839: 80e0a87 v: v3
- Loading branch information
Arnd Bergmann
authored and
Linus Torvalds
committed
Oct 2, 2006
1 parent
7eb9f91
commit 17aff91
Showing
7 changed files
with
32 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2453a3062d36f39f01302f9f1ad18e7a0c54fe38 | ||
refs/heads/master: 6760856791c6e527da678021ee6a67896549d4da |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include <asm/bug.h> | ||
#include <asm/uaccess.h> | ||
|
||
#define __KERNEL_SYSCALLS__ | ||
static int errno __attribute__((unused)); | ||
#include <asm/unistd.h> | ||
|
||
#ifdef _syscall3 | ||
int kernel_execve (const char *filename, char *const argv[], char *const envp[]) | ||
__attribute__((__weak__)); | ||
int kernel_execve (const char *filename, char *const argv[], char *const envp[]) | ||
{ | ||
mm_segment_t fs = get_fs(); | ||
int ret; | ||
|
||
WARN_ON(segment_eq(fs, USER_DS)); | ||
ret = execve(filename, (char **)argv, (char **)envp); | ||
if (ret) | ||
ret = -errno; | ||
|
||
return ret; | ||
} | ||
#endif |