[PATCH] arm64: Add KEYS_COMPAT to Kconfig & enable
Will Deacon
will.deacon at arm.com
Mon Oct 20 09:10:17 PDT 2014
On Tue, Oct 14, 2014 at 09:01:11PM +0100, Michael Spang wrote:
> This enables the keyctl compat syscall.
>
> Signed-off-by: Michael Spang <spang at chromium.org>
> ---
> arch/arm64/Kconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index ac9afde..35c3103 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -461,6 +461,11 @@ source "arch/arm64/Kconfig.debug"
>
> source "security/Kconfig"
>
> +config KEYS_COMPAT
> + bool
> + depends on COMPAT && KEYS
> + default y
I'm curious as to why this requires a Kconfig option, whilst other compat
system calls do not. The core code is already using COMPAT_SYSCALL_DEFINE,
so why can't the architecture just plumb the compat syscall table and be
done with it?
Failing that, the pattern used elsewhere involves __ARCH_WANT_COMPAT_*
#defines.
Will
More information about the linux-arm-kernel
mailing list