-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
security/keys/Kconfig: add KEYS_COMPAT option for keyctl tool #59
base: rpi3-optee-4.6
Are you sure you want to change the base?
Conversation
|
How does this relate to upstream? Is it possible to cherry-pick a few commits to achieve the same purpose? |
a8dcbb9
to
177734f
Compare
It seems that the commit torvalds@47b2c3f is related to my pull-request in Linux kernel source tree. |
Can we use torvalds/linux@47b2c3f instead then? |
Oh, that's good point. I will check that and update the progress about it. |
CONFIG_KEYS_COMPAT is defined in arch-specific Kconfigs and is missing for several 64-bit architectures : 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. [DH: Modified to remove arm64 compat enablement also as requested by Eric Biggers] Signed-off-by: Bilal Amarni <[email protected]> Signed-off-by: David Howells <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> cc: Eric Biggers <[email protected]> Signed-off-by: James Morris <[email protected]> Link: https://patchwork.kernel.org/patch/9565609/ (cherry picked from commit 47b2c3f) Tested-by: Seunghun Han <[email protected]>
177734f
to
4370eff
Compare
I cherry-picked the torvalds@47b2c3f commit from Linux kernel repository instead of my commit and tested it. |
Looks good to me. |
The Keyctl tool of Raspbian OS doesn't work because Linux kernel of the rpi3
branch doesn't have compat_key functions.
To solve this problem, KEYS_COMPAT option is added to security/keys/Kconfig
file.
Signed-off-by: Seunghun Han [email protected]