arm64: Add KEYS_COMPAT to Kconfig & enable
PATCH 1/1 arm64: Add KEYS_COMPAT to Kconfig & enable
This enables the keyctl compat syscall.
--- arch/arm64/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/Kconfig +5 -0
@@ -461,6 +461,11 @@ source "arch/arm64/Kconfig.debug" source "security/Kconfig" +config KEYS_COMPAT + bool + depends on COMPAT && KEYS + default y + source "crypto/Kconfig" if CRYPTO source "arch/arm64/crypto/Kconfig"
Signature · 1 line
2.1.0.rc2.206.gedb03e5
PATCH 1/1 arm64: Add KEYS_COMPAT to Kconfig & enable
Quoted 12 lines · Michael Spang
This enables the keyctl compat syscall.
Signed-off-by Michael Spang <[email protected]>--- arch/arm64/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/Kconfig +0
-0
arch/arm64/Kconfig source "arch/arm64/Kconfig.debug" · line 467
Quoted 7 lines
arch/arm64/Kconfig +4
-0@@ -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
PATCH 1/1 arm64: Add KEYS_COMPAT to Kconfig & enable
Quoted 26 lines · Will Deacon
Quoted 12 lines · Michael Spang
This enables the keyctl compat syscall.
Signed-off-by Michael Spang <[email protected]>--- arch/arm64/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)arch/arm64/Kconfig +0
-0arch/arm64/Kconfig source "arch/arm64/Kconfig.debug" · line 467
Quoted 7 lines
arch/arm64/Kconfig +4
-0@@ -461,6 +461,11 @@ source "arch/arm64/Kconfig.debug" source "security/Kconfig" +config KEYS_COMPAT + bool + depends on COMPAT && KEYS + default yI'm curious as to why this requires a
Kconfigoption, whilst other compat system calls do not. The core code is already usingCOMPAT_SYSCALL_DEFINE, so why can't the architecture just plumb the compat syscall table and be done with it?
Quoted 2 lines
Failing that, the pattern used elsewhere involves __ARCH_WANT_COMPAT_* #defines.
I am not actually sure why it is the way it is. All the other archs just set the option exactly like this.
I've just resent it with only a minor adjustment.
Cheers!
Michael