Re: [PATCH] crypto: fips - make proc files report fips module name and version

From: Randy Dunlap
Date: Mon Jun 20 2022 - 17:15:59 EST


Hi--

On 6/20/22 06:16, Vladis Dronov wrote:
> diff --git a/crypto/Kconfig b/crypto/Kconfig
> index 1d44893a997b..082ff03d9f6c 100644
> --- a/crypto/Kconfig
> +++ b/crypto/Kconfig
> @@ -33,6 +33,27 @@ config CRYPTO_FIPS
> certification. You should say no unless you know what
> this is.
>
> +config CRYPTO_FIPS_NAME
> + string "FIPS Module Name"
> + default "Linux Kernel Cryptographic API"
> + depends on (CRYPTO_FIPS)

No parentheses.

> + help
> + This option sets the FIPS Module name reported by the Crypto API via
> + the /proc/sys/crypto/fips_name file.
> +
> +config CRYPTO_FIPS_CUSTOM_VERSION
> + bool "Use Custom FIPS Module Version"
> + depends on (CRYPTO_FIPS)

Ditto.

> + default n
> +
> +config CRYPTO_FIPS_VERSION
> + string "FIPS Module Version"
> + default "(none)"
> + depends on (CRYPTO_FIPS_CUSTOM_VERSION)

Ditto.

> + help
> + This option provides the ability to override the FIPS Module Version.
> + By default the KERNELRELEASE value is used.

--
~Randy