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/include | |
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/include')
-rw-r--r-- | arch/s390/include/asm/seccomp.h | 16 | ||||
-rw-r--r-- | arch/s390/include/asm/thread_info.h | 10 |
2 files changed, 22 insertions, 4 deletions
diff --git a/arch/s390/include/asm/seccomp.h b/arch/s390/include/asm/seccomp.h new file mode 100644 index 000000000000..781a9cf9b002 --- /dev/null +++ b/arch/s390/include/asm/seccomp.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #ifndef _ASM_S390_SECCOMP_H | ||
2 | #define _ASM_S390_SECCOMP_H | ||
3 | |||
4 | #include <linux/unistd.h> | ||
5 | |||
6 | #define __NR_seccomp_read __NR_read | ||
7 | #define __NR_seccomp_write __NR_write | ||
8 | #define __NR_seccomp_exit __NR_exit | ||
9 | #define __NR_seccomp_sigreturn __NR_sigreturn | ||
10 | |||
11 | #define __NR_seccomp_read_32 __NR_read | ||
12 | #define __NR_seccomp_write_32 __NR_write | ||
13 | #define __NR_seccomp_exit_32 __NR_exit | ||
14 | #define __NR_seccomp_sigreturn_32 __NR_sigreturn | ||
15 | |||
16 | #endif /* _ASM_S390_SECCOMP_H */ | ||
diff --git a/arch/s390/include/asm/thread_info.h b/arch/s390/include/asm/thread_info.h index 461f2abd2e6f..2f86653dda69 100644 --- a/arch/s390/include/asm/thread_info.h +++ b/arch/s390/include/asm/thread_info.h | |||
@@ -83,14 +83,15 @@ static inline struct thread_info *current_thread_info(void) | |||
83 | /* | 83 | /* |
84 | * thread information flags bit numbers | 84 | * thread information flags bit numbers |
85 | */ | 85 | */ |
86 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | ||
87 | #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */ | 86 | #define TIF_NOTIFY_RESUME 1 /* callback before returning to user */ |
88 | #define TIF_SIGPENDING 2 /* signal pending */ | 87 | #define TIF_SIGPENDING 2 /* signal pending */ |
89 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ | 88 | #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ |
90 | #define TIF_RESTART_SVC 4 /* restart svc with new svc number */ | 89 | #define TIF_RESTART_SVC 4 /* restart svc with new svc number */ |
91 | #define TIF_SYSCALL_AUDIT 5 /* syscall auditing active */ | ||
92 | #define TIF_SINGLE_STEP 6 /* deliver sigtrap on return to user */ | 90 | #define TIF_SINGLE_STEP 6 /* deliver sigtrap on return to user */ |
93 | #define TIF_MCCK_PENDING 7 /* machine check handling is pending */ | 91 | #define TIF_MCCK_PENDING 7 /* machine check handling is pending */ |
92 | #define TIF_SYSCALL_TRACE 8 /* syscall trace active */ | ||
93 | #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ | ||
94 | #define TIF_SECCOMP 10 /* secure computing */ | ||
94 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ | 95 | #define TIF_USEDFPU 16 /* FPU was used by this task this quantum (SMP) */ |
95 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling | 96 | #define TIF_POLLING_NRFLAG 17 /* true if poll_idle() is polling |
96 | TIF_NEED_RESCHED */ | 97 | TIF_NEED_RESCHED */ |
@@ -99,15 +100,16 @@ static inline struct thread_info *current_thread_info(void) | |||
99 | #define TIF_RESTORE_SIGMASK 20 /* restore signal mask in do_signal() */ | 100 | #define TIF_RESTORE_SIGMASK 20 /* restore signal mask in do_signal() */ |
100 | #define TIF_FREEZE 21 /* thread is freezing for suspend */ | 101 | #define TIF_FREEZE 21 /* thread is freezing for suspend */ |
101 | 102 | ||
102 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | ||
103 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) | 103 | #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME) |
104 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) | 104 | #define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK) |
105 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) | 105 | #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) |
106 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) | 106 | #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) |
107 | #define _TIF_RESTART_SVC (1<<TIF_RESTART_SVC) | 107 | #define _TIF_RESTART_SVC (1<<TIF_RESTART_SVC) |
108 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | ||
109 | #define _TIF_SINGLE_STEP (1<<TIF_SINGLE_STEP) | 108 | #define _TIF_SINGLE_STEP (1<<TIF_SINGLE_STEP) |
110 | #define _TIF_MCCK_PENDING (1<<TIF_MCCK_PENDING) | 109 | #define _TIF_MCCK_PENDING (1<<TIF_MCCK_PENDING) |
110 | #define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE) | ||
111 | #define _TIF_SYSCALL_AUDIT (1<<TIF_SYSCALL_AUDIT) | ||
112 | #define _TIF_SECCOMP (1<<TIF_SECCOMP) | ||
111 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) | 113 | #define _TIF_USEDFPU (1<<TIF_USEDFPU) |
112 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) | 114 | #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) |
113 | #define _TIF_31BIT (1<<TIF_31BIT) | 115 | #define _TIF_31BIT (1<<TIF_31BIT) |