public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: Olga Kornievskaia <olga.kornievskaia@gmail.com>
Cc: steved@redhat.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 6/6] configure: check for rpc_gss_seccreate
Date: Thu, 7 Dec 2023 09:44:28 -0500	[thread overview]
Message-ID: <ZXHaTIvFruYfycsm@tissot.1015granger.net> (raw)
In-Reply-To: <20231206213332.55565-7-olga.kornievskaia@gmail.com>

On Wed, Dec 06, 2023 at 04:33:32PM -0500, Olga Kornievskaia wrote:
> From: Olga Kornievskaia <kolga@netapp.com>
> 
> If we have rpc_gss_sccreate in tirpc library define
> HAVE_TIRPC_GSS_SECCREATE, which would allow us to handle bad_integrity
> errors.
> 
> Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
> ---
>  aclocal/libtirpc.m4 | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/aclocal/libtirpc.m4 b/aclocal/libtirpc.m4
> index bddae022..ef48a2ae 100644
> --- a/aclocal/libtirpc.m4
> +++ b/aclocal/libtirpc.m4
> @@ -26,6 +26,11 @@ AC_DEFUN([AC_LIBTIRPC], [
>                                      [Define to 1 if your tirpc library provides libtirpc_set_debug])],,
>                           [${LIBS}])])
>  
> +     AS_IF([test -n "${LIBTIRPC}"],
> +           [AC_CHECK_LIB([tirpc], [rpc_gss_seccreate],
> +                         [AC_DEFINE([HAVE_TIRPC_GSS_SECCREATE], [1],
> +                                    [Define to 1 if your tirpc library provides rpc_gss_seccreate])],,
> +                         [${LIBS}])])
>    AC_SUBST([AM_CPPFLAGS])
>    AC_SUBST(LIBTIRPC)

It would be better for distributors if this checked that the local
version of libtirpc has the rpc_gss_seccreate fix that you sent.
The PKG_CHECK_MODULES macro should work for that, once you know the
version number of libtirpc that will have that fix.

Also, this patch should come either before "gssd: switch to using
rpc_gss_seccreate()" or this change should be squashed into that
patch, IMO.


-- 
Chuck Lever

  reply	other threads:[~2023-12-07 14:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-06 21:33 [PATCH 0/6] nfs-utils: handle BAD_INTEGRITY ERROR Olga Kornievskaia
2023-12-06 21:33 ` [PATCH 1/6] gssd: revert commit a5f3b7ccb01c Olga Kornievskaia
2024-01-04 14:52   ` Petr Vorel
2023-12-06 21:33 ` [PATCH 2/6] gssd: revert commit 513630d720bd Olga Kornievskaia
2024-01-04 14:46   ` Petr Vorel
2023-12-06 21:33 ` [PATCH 3/6] gssd: switch to using rpc_gss_seccreate() Olga Kornievskaia
2023-12-06 21:33 ` [PATCH 4/6] gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for machine credentials Olga Kornievskaia
2023-12-06 21:33 ` [PATCH 5/6] gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for user credentials Olga Kornievskaia
2023-12-06 21:33 ` [PATCH 6/6] configure: check for rpc_gss_seccreate Olga Kornievskaia
2023-12-07 14:44   ` Chuck Lever [this message]
2023-12-07 22:21     ` Olga Kornievskaia
2023-12-07 22:27       ` Chuck Lever
2023-12-08 14:26         ` Olga Kornievskaia
2023-12-08 15:01           ` Steve Dickson
2023-12-08 15:22             ` Chuck Lever
2023-12-08 14:54     ` Steve Dickson
2023-12-07 14:50 ` [PATCH 0/6] nfs-utils: handle BAD_INTEGRITY ERROR Chuck Lever
2024-01-04  0:38 ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZXHaTIvFruYfycsm@tissot.1015granger.net \
    --to=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=olga.kornievskaia@gmail.com \
    --cc=steved@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox