Re: [PATCH -next] digsig: fix build errors

From: Kasatkin, Dmitry
Date: Mon Nov 21 2011 - 05:32:53 EST


On Mon, Nov 21, 2011 at 8:12 AM, Randy Dunlap <rdunlap@xxxxxxxxxxxx> wrote:
> From: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
>
> Fix build errors by adding kconfig dependency on KEYS:
>
> lib/digsig.c:106:16: error: dereferencing pointer to incomplete type
> lib/digsig.c:107:11: error: dereferencing pointer to incomplete type
> lib/digsig.c:184:14: error: dereferencing pointer to incomplete type
> lib/digsig.c:223:3: error: 'key_ref_t' undeclared (first use in this function)
> lib/digsig.c:223:13: error: expected ';' before 'kref'
> lib/digsig.c:224:3: error: 'kref' undeclared (first use in this function)
> lib/digsig.c:224:3: error: implicit declaration of function 'keyring_search'
> lib/digsig.c:231:3: error: implicit declaration of function 'request_key'
>
> and after changing lib/Kconfig:
> warning: (INTEGRITY_DIGSIG) selects DIGSIG which has unmet direct dependencies (CRYPTO && KEYS)
>
> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxx>
> Cc: Dmitry Kasatkin <dmitry.kasatkin@xxxxxxxxx>
> ---
> Âlib/Kconfig        Â|  Â4 ++--
> Âsecurity/integrity/Kconfig | Â Â2 +-
> Â2 files changed, 3 insertions(+), 3 deletions(-)
>
> --- next-2011-1121.orig/lib/Kconfig
> +++ next-2011-1121/lib/Kconfig
> @@ -294,10 +294,10 @@ config MPILIB_EXTRA
>
> Âconfig DIGSIG
> Â Â Â Âtristate "In-kernel signature checker"
> - Â Â Â depends on CRYPTO
> + Â Â Â depends on CRYPTO && KEYS

this patch was in /crypto dir before, now it is in /lib...
I think CRYPTO is not needed at all at the moment..


> Â Â Â Âselect MPILIB
> Â Â Â Âhelp
> Â Â Â Â ÂDigital signature verification. Currently only RSA is supported.
> - Â Â Â Â Implementation is done using GnuPG MPI library
> + Â Â Â Â Implementation is done using GnuPG MPI library.
>
> Âendmenu
> --- next-2011-1121.orig/security/integrity/Kconfig
> +++ next-2011-1121/security/integrity/Kconfig
> @@ -5,7 +5,7 @@ config INTEGRITY
>
> Âconfig INTEGRITY_DIGSIG
> Â Â Â Âboolean "Digital signature verification using multiple keyrings"
> - Â Â Â depends on INTEGRITY
> + Â Â Â depends on INTEGRITY && CRYPTO && KEYS

Is it really needed, because 2 lines bellow is "select DIGSIG", which
will depend on KEYS??


> Â Â Â Âdefault n
> Â Â Â Âselect DIGSIG
> Â Â Â Âhelp
>

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/