KEYS: remove CONFIG_KEYS_COMPAT
Subsystems (2)
PATCH RESEND 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
@@ -17,7 +17,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
@@ -272,7 +272,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);
@@ -287,7 +287,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.16.0.rc0.223.g4a4ac83678-goog
Quoted 86 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>--- 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 KEYSsecurity/keys/Makefile +1
-1@@ -17,7 +17,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.osecurity/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@@ -272,7 +272,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);@@ -287,7 +287,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.16.0.rc0.223.g4a4ac83678-goog
Ping.
Quoted 79 lines · Eric Biggers
Quoted 78 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>--- 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 KEYSsecurity/keys/Makefile +1
-1@@ -17,7 +17,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.osecurity/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 +1
-1@@ -272,7 +272,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);@@ -287,7 +287,7 @@ static inline long keyctl_dh_compute(struct keyctl_dh_params __user *params,return -EOPNOTSUPP ; }
Quoted 10 lines
Quoted 8 lines
security/keys/internal.h +1
-1-#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.16.0.rc0.223.g4a4ac83678-googPing.
Ping. David, are you ever planning to apply this?
- Eric
PATCH RESEND 1/1 KEYS: remove CONFIG_KEYS_COMPAT
In reply to Eric BiggersFrom: 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
@@ -17,7 +17,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
@@ -272,7 +272,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);
@@ -287,7 +287,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.19.1.930.g4563a0d9d0-goog
Quoted 86 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>--- 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 KEYSsecurity/keys/Makefile +1
-1@@ -17,7 +17,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.osecurity/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@@ -272,7 +272,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);@@ -287,7 +287,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.19.1.930.g4563a0d9d0-goog
Ping.
Quoted 86 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>--- 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 KEYSsecurity/keys/Makefile +1
-1@@ -17,7 +17,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.osecurity/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@@ -272,7 +272,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);@@ -287,7 +287,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.19.1.930.g4563a0d9d0-goog
Ping. David, are you planning to apply this?
- Eric
Quoted 90 lines · Eric Biggers
Quoted 86 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>--- 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 KEYSsecurity/keys/Makefile +1
-1@@ -17,7 +17,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.osecurity/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@@ -272,7 +272,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);@@ -287,7 +287,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.19.1.930.g4563a0d9d0-googPing. David, are you planning to apply this?
Quoted 1 line
- Eric
Ping.
PATCH RESEND 1/1 KEYS: remove CONFIG_KEYS_COMPAT
In reply to Eric BiggersFrom: 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
@@ -21,10 +21,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
@@ -17,7 +17,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
@@ -259,7 +259,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);
@@ -274,7 +274,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.22.0.rc1.257.g3120a18244-goog
Quoted 10 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Signed-off-by Eric Biggers <[email protected]>
Signature · 2 lines
James Morris <[email protected]>
PATCH RESEND 1/1 KEYS: remove CONFIG_KEYS_COMPAT
In reply to Eric BiggersFrom: 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
@@ -21,10 +21,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 KEYS_REQUEST_CACHE bool "Enable temporary caching of the last request_key() result" depends on KEYS
security/keys/Makefile +1 -1
@@ -17,7 +17,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
@@ -46,11 +46,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.22.1
PATCH RESEND 1/1 KEYS: remove CONFIG_KEYS_COMPAT
In reply to Eric BiggersFrom: 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
@@ -21,10 +21,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 KEYS_REQUEST_CACHE bool "Enable temporary caching of the last request_key() result" depends on KEYS
security/keys/Makefile +1 -1
@@ -17,7 +17,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
@@ -46,11 +46,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
@@ -264,7 +264,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);
@@ -279,7 +279,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.23.0.581.g78d2f28ef7-goog
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>
(aka compiling with the different combinations).
/Jarkko
Quoted 13 lines · Jarkko Sakkinen
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>
Quoted 6 lines
Reviewed-by Jarkko Sakkinen <[email protected]>Tested-by Jarkko Sakkinen <[email protected]>(aka compiling with the different combinations).
/Jarkko
Ping.
Quoted 14 lines · Eric Biggers
Quoted 13 lines · Jarkko Sakkinen
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>
Quoted 8 lines
Quoted 6 lines
Reviewed-by Jarkko Sakkinen <[email protected]>Tested-by Jarkko Sakkinen <[email protected]>(aka compiling with the different combinations).
/Jarkko
Ping.
I can pick this up to my v5.5-rc2 PR (already sent one for rc1).
/Jarkko
Quoted 20 lines · Jarkko Sakkinen
Quoted 19 lines · Eric Biggers
Quoted 18 lines · Jarkko Sakkinen
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>Reviewed-by Jarkko Sakkinen <[email protected]>Tested-by Jarkko Sakkinen <[email protected]>(aka compiling with the different combinations).
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
/Jarkko
Ping.
I can pick this up to my v5.5-rc2 PR (already sent one for rc1).
/Jarkko
Ping.
Quoted 23 lines · Eric Biggers
Quoted 22 lines · Jarkko Sakkinen
Quoted 21 lines · Eric Biggers
Quoted 19 lines · Jarkko Sakkinen
Quoted 11 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>Reviewed-by Jarkko Sakkinen <[email protected]>Tested-by Jarkko Sakkinen <[email protected]>(aka compiling with the different combinations).
/Jarkko
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Ping.
I can pick this up to my v5.5-rc2 PR (already sent one for rc1).
/Jarkko
Ping.
rc1 was just out last Sunday so nothing could have happened to this anyway. It is on my queue but we have to fix tpm_tis issues first.
/Jarkko
Jarkko Sakkinen
AppliedQuoted 10 lines · Jarkko Sakkinen
Quoted 9 lines · Eric Biggers
From: Eric Biggers <[email protected]>
KEYS_COMPATnow always takes the value of COMPAT && KEYS. But thesecurity/keys/directory is only compiled if KEYS is enabled, so in practiceKEYS_COMPATis the same as COMPAT. Therefore, remove the unnecessaryKEYS_COMPATand just use COMPAT directly.(Also remove an outdated comment from
compat.c.)
Quoted 7 lines
Quoted 2 lines
Reviewed-by James Morris <[email protected]>Signed-off-by Eric Biggers <[email protected]>Reviewed-by Jarkko Sakkinen <[email protected]>Tested-by Jarkko Sakkinen <[email protected]>(aka compiling with the different combinations).
I applied this to git://git.infradead.org/users/jjs/linux-tpmdd.git
/Jarkko