diff options
author | David Drysdale <drysdale@google.com> | 2014-12-12 19:57:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-13 15:42:51 -0500 |
commit | 27d6ec7ad6f7a2a131ff8e9f77bcc6547e178d2c (patch) | |
tree | a9d56ffca09d414656cac5a57c9b55c4b226cbea /arch/x86/ia32 | |
parent | 51f39a1f0cea1cacf8c787f652f26dfee9611874 (diff) |
x86: hook up execveat system call
Hook up x86-64, i386 and x32 ABIs.
Signed-off-by: David Drysdale <drysdale@google.com>
Cc: Meredydd Luff <meredydd@senatehouse.org>
Cc: Shuah Khan <shuah.kh@samsung.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Rich Felker <dalias@aerifal.cx>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/ia32')
-rw-r--r-- | arch/x86/ia32/audit.c | 1 | ||||
-rw-r--r-- | arch/x86/ia32/ia32entry.S | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/ia32/audit.c b/arch/x86/ia32/audit.c index 5d7b381da692..2eccc8932ae6 100644 --- a/arch/x86/ia32/audit.c +++ b/arch/x86/ia32/audit.c | |||
@@ -35,6 +35,7 @@ int ia32_classify_syscall(unsigned syscall) | |||
35 | case __NR_socketcall: | 35 | case __NR_socketcall: |
36 | return 4; | 36 | return 4; |
37 | case __NR_execve: | 37 | case __NR_execve: |
38 | case __NR_execveat: | ||
38 | return 5; | 39 | return 5; |
39 | default: | 40 | default: |
40 | return 1; | 41 | return 1; |
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S index ffe71228fc10..82e8a1d44658 100644 --- a/arch/x86/ia32/ia32entry.S +++ b/arch/x86/ia32/ia32entry.S | |||
@@ -480,6 +480,7 @@ GLOBAL(\label) | |||
480 | PTREGSCALL stub32_rt_sigreturn, sys32_rt_sigreturn | 480 | PTREGSCALL stub32_rt_sigreturn, sys32_rt_sigreturn |
481 | PTREGSCALL stub32_sigreturn, sys32_sigreturn | 481 | PTREGSCALL stub32_sigreturn, sys32_sigreturn |
482 | PTREGSCALL stub32_execve, compat_sys_execve | 482 | PTREGSCALL stub32_execve, compat_sys_execve |
483 | PTREGSCALL stub32_execveat, compat_sys_execveat | ||
483 | PTREGSCALL stub32_fork, sys_fork | 484 | PTREGSCALL stub32_fork, sys_fork |
484 | PTREGSCALL stub32_vfork, sys_vfork | 485 | PTREGSCALL stub32_vfork, sys_vfork |
485 | 486 | ||