Re: [PATCH] security/keys: add CONFIG_KEYS_COMPAT to Kconfig
From: Arnd Bergmann
Date: Fri Feb 10 2017 - 03:18:32 EST
On Thu, Feb 9, 2017 at 10:11 PM, Bilal Amarni <bilal.amarni@xxxxxxxxx> wrote:
> CONFIG_KEYS_COMPAT is defined in arch-specific Kconfigs and is missing for
> several 64-bit architectures : arm64, mips, parisc, tile.
>
> At the moment and for those architectures, calling in 32-bit userspace the
> keyctl syscall would return an ENOSYS error.
>
> This patch moves the CONFIG_KEYS_COMPAT option to security/keys/Kconfig, to
> make sure the compatibility wrapper is registered by default for any 64-bit
> architecture as long as it is configured with CONFIG_COMPAT.
>
> Signed-off-by: Bilal Amarni <bilal.amarni@xxxxxxxxx>
Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>