diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-06-12 04:26:26 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-12 04:27:31 -0400 |
commit | bcf5cef7db869dd3b0ec55ad99641e66b2f5cf02 (patch) | |
tree | 56119ef1804f60122aba7b780768938936d180a1 /arch/s390/kernel/ptrace.c | |
parent | 7757591ab4a36314a258e181dbf0994415c288c2 (diff) |
[S390] secure computing arch backend
Enable secure computing on s390 as well.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/ptrace.c')
-rw-r--r-- | arch/s390/kernel/ptrace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c index 99eef179e903..b6fc1ae2ffcb 100644 --- a/arch/s390/kernel/ptrace.c +++ b/arch/s390/kernel/ptrace.c | |||
@@ -36,7 +36,8 @@ | |||
36 | #include <linux/elf.h> | 36 | #include <linux/elf.h> |
37 | #include <linux/regset.h> | 37 | #include <linux/regset.h> |
38 | #include <linux/tracehook.h> | 38 | #include <linux/tracehook.h> |
39 | #include <linux/compat.h> | 39 | #include <linux/seccomp.h> |
40 | #include <asm/compat.h> | ||
40 | #include <asm/segment.h> | 41 | #include <asm/segment.h> |
41 | #include <asm/page.h> | 42 | #include <asm/page.h> |
42 | #include <asm/pgtable.h> | 43 | #include <asm/pgtable.h> |
@@ -640,6 +641,9 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs) | |||
640 | { | 641 | { |
641 | long ret; | 642 | long ret; |
642 | 643 | ||
644 | /* Do the secure computing check first. */ | ||
645 | secure_computing(regs->gprs[2]); | ||
646 | |||
643 | /* | 647 | /* |
644 | * The sysc_tracesys code in entry.S stored the system | 648 | * The sysc_tracesys code in entry.S stored the system |
645 | * call number to gprs[2]. | 649 | * call number to gprs[2]. |