summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-06-02 02:02:17 +0300
committerKees Cook <keescook@chromium.org>2016-06-14 20:54:40 +0300
commit8112c4f140fa03f9ee68aad2cc79afa7df5418d3 (patch)
tree5e4ede4223eaed16b34ec0bf1328bfb7a6af09c6 /include
parentc87a85177e7a7f9a9ee32893fb99a928e02fe23a (diff)
downloadlinux-8112c4f140fa03f9ee68aad2cc79afa7df5418d3.tar.xz
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')
-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