KEYS: remove CONFIG_KEYS_COMPAT
Subsystems (2)
PATCH 1/1 KEYS: remove CONFIG_KEYS_COMPAT
From: Eric Biggers <[email protected]>
KEYS_COMPAT now always takes the value of COMPAT && KEYS. But the security/keys/ directory is only compiled if KEYS is enabled, so in practice KEYS_COMPAT is the same as COMPAT. Therefore, remove the unnecessary KEYS_COMPAT and just use COMPAT directly.
(Also remove an outdated comment from compat.c.)
--- security/keys/Kconfig | 4 ---- security/keys/Makefile | 2 +- security/keys/compat.c | 5 ----- security/keys/internal.h | 4 ++-- 4 files changed, 3 insertions(+), 12 deletions(-)
security/keys/Kconfig +0 -4
@@ -20,10 +20,6 @@ config KEYS If you are unsure as to whether this is required, answer N. -config KEYS_COMPAT - def_bool y - depends on COMPAT && KEYS - config PERSISTENT_KEYRINGS bool "Enable register of persistent per-UID keyrings" depends on KEYS
security/keys/Makefile +1 -1
@@ -16,7 +16,7 @@ obj-y := \ request_key_auth.o \ user_defined.o compat-obj-$(CONFIG_KEY_DH_OPERATIONS) += compat_dh.o -obj-$(CONFIG_KEYS_COMPAT) += compat.o $(compat-obj-y) +obj-$(CONFIG_COMPAT) += compat.o $(compat-obj-y) obj-$(CONFIG_PROC_FS) += proc.o obj-$(CONFIG_SYSCTL) += sysctl.o obj-$(CONFIG_PERSISTENT_KEYRINGS) += persistent.o
security/keys/compat.c +0 -5
@@ -50,11 +50,6 @@ static long compat_keyctl_instantiate_key_iov(/* * The key control system call, 32-bit compatibility version for 64-bit archs -* -* This should only be called if the 64-bit arch uses weird pointers in 32-bit -* mode or doesn't guarantee that the top 32-bits of the argument registers on -* taking a 32-bit syscall are zero. If you can, you should call sys_keyctl() -* directly. */ COMPAT_SYSCALL_DEFINE5 (keyctl, u32, option, u32, arg2, u32, arg3, u32, arg4, u32, arg5)
security/keys/internal.h +2 -2
@@ -271,7 +271,7 @@ extern long keyctl_dh_compute(struct keyctl_dh_params __user *, char __user *, size_t, struct keyctl_kdf_params __user *);extern long __keyctl_dh_compute (struct keyctl_dh_params __user *,char __user *,size_t ,struct keyctl_kdf_params *); -#ifdef CONFIG_KEYS_COMPAT +#ifdef CONFIG_COMPAT extern long compat_keyctl_dh_compute (struct keyctl_dh_params __user *params,char __user *buffer,size_t buflen,struct compat_keyctl_kdf_params __user *kdf);
@@ -286,7 +286,7 @@ static inline long keyctl_dh_compute(struct keyctl_dh_params __user *params,return -EOPNOTSUPP ; } -#ifdef CONFIG_KEYS_COMPAT +#ifdef CONFIG_COMPAT static inline long compat_keyctl_dh_compute( struct keyctl_dh_params __user *params, char __user *buffer, size_t buflen,
Signature · 1 line
2.13.1
David Howells
maintainerQuoted 5 lines · Eric Biggers
security/keys/Kconfig +0
-0
security/keys/Kconfig config KEYS · line 25
Quoted 10 lines
security/keys/Kconfig +0
-4@@ -20,10 +20,6 @@ config KEYS If you are unsure as to whether this is required, answer N. -config KEYS_COMPAT - def_bool y - depends on COMPAT && KEYS - config PERSISTENT_KEYRINGS bool "Enable register of persistent per-UID keyrings" depends on KEYS
Hmmm... This is in linus/master, but not in security/next. I'll hold your patch till later in the merge window or just after -rc1.
David
Quoted 21 lines · David Howells
Quoted 5 lines · Eric Biggers
security/keys/Kconfig +0
-0security/keys/Kconfig config KEYS · line 25
Quoted 10 lines
security/keys/Kconfig +0
-4@@ -20,10 +20,6 @@ config KEYS If you are unsure as to whether this is required, answer N. -config KEYS_COMPAT - def_bool y - depends on COMPAT && KEYS - config PERSISTENT_KEYRINGS bool "Enable register of persistent per-UID keyrings" depends on KEYSHmmm... This is in linus/master, but not in
security/next. I'll hold your patch till later in the merge window or just after -rc1.
Quoted 1 line
David
Hi David, are you still planning to apply this patch?
Eric
Quoted 22 lines · Eric Biggers
Quoted 21 lines · David Howells
Quoted 5 lines · Eric Biggers
security/keys/Kconfig +0
-0security/keys/Kconfig config KEYS · line 25
Quoted 10 lines
security/keys/Kconfig +0
-4@@ -20,10 +20,6 @@ config KEYS If you are unsure as to whether this is required, answer N. -config KEYS_COMPAT - def_bool y - depends on COMPAT && KEYS - config PERSISTENT_KEYRINGS bool "Enable register of persistent per-UID keyrings" depends on KEYSHmmm... This is in linus/master, but not in
security/next. I'll hold your patch till later in the merge window or just after -rc1.
Quoted 5 lines
Quoted 1 line
David
Hi David, are you still planning to apply this patch?
Eric
Ping.
Quoted 23 lines · Eric Biggers
Quoted 22 lines · Eric Biggers
Quoted 21 lines · David Howells
Quoted 5 lines · Eric Biggers
security/keys/Kconfig +0
-0security/keys/Kconfig config KEYS · line 25
Quoted 10 lines
security/keys/Kconfig +0
-4@@ -20,10 +20,6 @@ config KEYS If you are unsure as to whether this is required, answer N. -config KEYS_COMPAT - def_bool y - depends on COMPAT && KEYS - config PERSISTENT_KEYRINGS bool "Enable register of persistent per-UID keyrings" depends on KEYSHmmm... This is in linus/master, but not in
security/next. I'll hold your patch till later in the merge window or just after -rc1.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
David
Hi David, are you still planning to apply this patch?
Eric
Ping.
Ping.