From 208e9ebabe4b685c59fd5b2e90631ed861c9d1e2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 8 Mar 2017 16:27:04 -0800 Subject: [PATCH] UPSTREAM: arm64: support keyctl() system call in 32-bit mode As is the case for a number of other architectures that have a 32-bit compat mode, enable KEYS_COMPAT if both COMPAT and KEYS are enabled. This allows AArch32 programs to use the keyctl() system call when running on an AArch64 kernel. Signed-off-by: Eric Biggers Signed-off-by: Will Deacon (cherry picked from commit 5c2a625937ba49bc691089370638223d310cda9a) Change-Id: I100b99f6c2262da5b7c7ea660c47ffedfa6a1297 Signed-off-by: Jacob Chen --- arch/arm64/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 190471794853..45f77ff5ad14 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1025,6 +1025,10 @@ config SYSVIPC_COMPAT def_bool y depends on COMPAT && SYSVIPC +config KEYS_COMPAT + def_bool y + depends on COMPAT && KEYS + endmenu menu "Power management options"