summaryrefslogtreecommitdiffstats
path: root/include/linux/seccomp.h
diff options
context:
space:
mode:
authorKees Cook2016-06-02 01:02:17 +0200
committerKees Cook2016-06-14 19:54:40 +0200
commit8112c4f140fa03f9ee68aad2cc79afa7df5418d3 (patch)
tree5e4ede4223eaed16b34ec0bf1328bfb7a6af09c6 /include/linux/seccomp.h
parentx86/entry: Get rid of two-phase syscall entry work (diff)
downloadkernel-qcow2-linux-8112c4f140fa03f9ee68aad2cc79afa7df5418d3.tar.gz
kernel-qcow2-linux-8112c4f140fa03f9ee68aad2cc79afa7df5418d3.tar.xz
kernel-qcow2-linux-8112c4f140fa03f9ee68aad2cc79afa7df5418d3.zip
seccomp: remove 2-phase API
Since nothing is using the 2-phase API, and it adds more complexity than benefit, remove it. Signed-off-by: Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@kernel.org>
Diffstat (limited to 'include/linux/seccomp.h')
-rw-r--r--include/linux/seccomp.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/seccomp.h b/include/linux/seccomp.h
index 9eaa7b34d6da..ecc296c137cd 100644
--- a/include/linux/seccomp.h
+++ b/include/linux/seccomp.h
@@ -35,12 +35,6 @@ static inline int secure_computing(const struct seccomp_data *sd)
return __secure_computing(sd);
return 0;
}
-
-#define SECCOMP_PHASE1_OK 0
-#define SECCOMP_PHASE1_SKIP 1
-
-extern u32 seccomp_phase1(struct seccomp_data *sd);
-int seccomp_phase2(u32 phase1_result);
#else
extern void secure_computing_strict(int this_syscall);
#endif