On Tue, Nov 24, 2026 at 09:50:35PM +0000, Eric Biggers wrote:
> On Tue, Nov 24, 2026 at 09:40:40PM +0200, Jarkko Sakkinen wrote:
> > diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig
> > index c73979b2e98e..1c78a9a663c5 100644
> > --- a/crypto/asymmetric_keys/Kconfig
> > +++ b/crypto/asymmetric_keys/Kconfig
> > @@ -2,6 +2,7 @@
> >  menuconfig ASYMMETRIC_KEY_TYPE
> >     bool "Asymmetric (public-key cryptographic) key type"
> >     depends on KEYS
> > +   select KEYCTL_PKEY
> >     help
> >       This option provides support for a key type that holds the data for
> >       the asymmetric keys used for public key cryptographic operations such
> 
> Could we use this opportunity to give CONFIG_KEYCTL_PKEY an
> off-by-default prompt like CONFIG_KEY_DH_OPERATIONS, please?  There are
> a lot of systems that need ASYMMETRIC_KEY_TYPE for verifying signatures
> but don't the KEYCTL_PKEY keyctls.  The fact that the KEYCTL_PKEY
> keyctls get pulled in too has always been a huge problem, given the
> additional attack surface they expose as well as other issues like the
> kernel's RSA code not being resistant to timing attacks.

We can do that.

> 
> - Eric

Br, Jarkko

Reply via email to