aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2013-11-08 18:51:56 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-11-14 06:13:15 -0500
commit9170217510cd280c704966738e7c1660c8fa5cbd (patch)
tree008a3590eb2f1b5e18aaa5df8267c67a19fa6524 /arch/arm/Kconfig
parentb02f84671cd0c69400daf1595e7c321ea8e6c657 (diff)
ARM: 7888/1: seccomp: not compatible with ARM OABI
Make sure that seccomp filter won't be built when ARM OABI is in use, since there is work needed to distinguish calling conventions. Until that is done (which is likely never since OABI is deprecated), make sure seccomp filter is unavailable in the OABI world. Signed-off-by: Kees Cook <keescook@chromium.org> Reviewed-by: Will Drewry <wad@chromium.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index fa5c6003e304..085b31ba287a 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -24,7 +24,7 @@ config ARM
24 select HARDIRQS_SW_RESEND 24 select HARDIRQS_SW_RESEND
25 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL 25 select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL
26 select HAVE_ARCH_KGDB 26 select HAVE_ARCH_KGDB
27 select HAVE_ARCH_SECCOMP_FILTER 27 select HAVE_ARCH_SECCOMP_FILTER if (AEABI && !OABI_COMPAT)
28 select HAVE_ARCH_TRACEHOOK 28 select HAVE_ARCH_TRACEHOOK
29 select HAVE_BPF_JIT 29 select HAVE_BPF_JIT
30 select HAVE_CONTEXT_TRACKING 30 select HAVE_CONTEXT_TRACKING
@@ -1726,6 +1726,11 @@ config OABI_COMPAT
1726 in memory differs between the legacy ABI and the new ARM EABI 1726 in memory differs between the legacy ABI and the new ARM EABI
1727 (only for non "thumb" binaries). This option adds a tiny 1727 (only for non "thumb" binaries). This option adds a tiny
1728 overhead to all syscalls and produces a slightly larger kernel. 1728 overhead to all syscalls and produces a slightly larger kernel.
1729
1730 The seccomp filter system will not be available when this is
1731 selected, since there is no way yet to sensibly distinguish
1732 between calling conventions during filtering.
1733
1729 If you know you'll be using only pure EABI user space then you 1734 If you know you'll be using only pure EABI user space then you
1730 can say N here. If this option is not selected and you attempt 1735 can say N here. If this option is not selected and you attempt
1731 to execute a legacy ABI binary then the result will be 1736 to execute a legacy ABI binary then the result will be