From: Petr Vorel <pvorel@suse.cz>
To: linux-nfs@vger.kernel.org
Cc: Petr Vorel <petr.vorel@gmail.com>,
Olga Kornievskaia <kolga@netapp.com>,
Steve Dickson <steved@redhat.com>, Petr Vorel <pvorel@suse.cz>
Subject: [PATCH 1/1] libtirpc: Add detection for new rpc_gss_sec members
Date: Wed, 25 Oct 2023 20:01:41 +0200 [thread overview]
Message-ID: <20231025180141.416189-1-pvorel@suse.cz> (raw)
From: Petr Vorel <petr.vorel@gmail.com>
4b272471 started to use struct rpc_gss_sec member minor_status, which
was added in new libtirpc 1.3.4. Add check for the member to prevent
failure on older libtirpc headers.
Fixes: 4b272471 ("gssd: handle KRB5_AP_ERR_BAD_INTEGRITY for machine credentials")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
aclocal/libtirpc.m4 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/aclocal/libtirpc.m4 b/aclocal/libtirpc.m4
index bddae022..dd351722 100644
--- a/aclocal/libtirpc.m4
+++ b/aclocal/libtirpc.m4
@@ -25,6 +25,10 @@ AC_DEFUN([AC_LIBTIRPC], [
[AC_DEFINE([HAVE_LIBTIRPC_SET_DEBUG], [1],
[Define to 1 if your tirpc library provides libtirpc_set_debug])],,
[${LIBS}])])
+ AS_IF([test "$enable_gss" = "yes"],
+ [AC_CHECK_MEMBER(struct rpc_gss_sec.minor_status,,
+ [AC_MSG_ERROR([Missing rpc_gss_sec.minor_status in <rpc/auth_gss.h>, update libtirpc or run with --disable-gss])],
+ [#include <rpc/auth_gss.h>])])
AC_SUBST([AM_CPPFLAGS])
AC_SUBST(LIBTIRPC)
--
2.42.0
next reply other threads:[~2023-10-25 18:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-25 18:01 Petr Vorel [this message]
2023-11-13 17:05 ` [PATCH 1/1] libtirpc: Add detection for new rpc_gss_sec members Steve Dickson
2023-11-13 18:30 ` Petr Vorel
2023-11-13 18:48 ` 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=20231025180141.416189-1-pvorel@suse.cz \
--to=pvorel@suse.cz \
--cc=kolga@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=petr.vorel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.