Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2745655rda; Wed, 25 Oct 2023 11:02:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEh/hJVnDYZbz32xOpZoSmpqAD7sIJ3wf3kIj9WjiHN2+521rXPD52efGo3B48A6WChQ5m6 X-Received: by 2002:a25:6904:0:b0:d9a:d7b6:708a with SMTP id e4-20020a256904000000b00d9ad7b6708amr15896394ybc.37.1698256943274; Wed, 25 Oct 2023 11:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698256943; cv=none; d=google.com; s=arc-20160816; b=c3acjBewjjfTORHgWqQ4M9Hrbgy/xXNrtbBqL0YcOqrNQd5H8bZ4bSJZ7I8C7zfomT AifLORofE0lJmcyZhmgCSmmWi9L2k0jjGEkv+iPCES5KKRhIuARD5PQlcgDvmszPD/Fe MvX+pGsyVlXUxil8B5myiusXYAR/QScOauXGhS82im/RgQUAJ+4EL+2hcjkWXmgmnvtV 1Gf5sN8kW8F8DunED5iRhdmr6HzliMudpQSV3nbgVnqUJoYN6o+JYkP3y03OxtdPRz4j 5yqjmX3nwzJfFaPrDj4u36LvBJZUkhNqmhdz6zHbn4uAHzPSNdFuIPbQot/7TMGXddkX gLhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=4c0JG7/Ou91Dnr1ipZrc0vj0H3TJfV4CsNO6jHvx6rU=; fh=y98OKhXtdpuod4GbHItvj/b3ZDJsWv+Mpcsx69EjDms=; b=yEyQ7yztBgC2AYZPjS4xpsV4wL/3w9AN5Sc3tTvuw/xrBmw9dmmAZ33+WwdhDBZZX6 qrwf0b7xflzJCMoOZ2OPqxOowBzYYxI5mnfnJHk6WzWCc0uaO8isvxamJHsaErAXFT+7 cm9VGnjSsvyWNQDex0IXlkOYyuKlcSZlt0htm1lLpPZG1aJNkUFiu0GtXUji4BspYNCY 8lFeTLRSyfndWxjhEghaNZu4kUnPQ+2DqWYzrOCxFqjex2GgZN2VbI8S6kmBkdcmNqCL g1p+73mh/zNzI36mD7zoZM5FY7gjIvhcmm3+a47Ko8P/KpkwTpO8Y/YbVU+f7oQtBzGB yKTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="a/YEvUf/"; dkim=neutral (no key) header.i=@suse.cz header.b=I9dIQnI6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y188-20020a2532c5000000b00d9cb3316607si11874435yby.4.2023.10.25.11.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 11:02:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="a/YEvUf/"; dkim=neutral (no key) header.i=@suse.cz header.b=I9dIQnI6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0135F8023A1B; Wed, 25 Oct 2023 11:02:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbjJYSCF (ORCPT + 99 others); Wed, 25 Oct 2023 14:02:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjJYSCE (ORCPT ); Wed, 25 Oct 2023 14:02:04 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 296F2123 for ; Wed, 25 Oct 2023 11:02:01 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CA68C1FFC0; Wed, 25 Oct 2023 18:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1698256919; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4c0JG7/Ou91Dnr1ipZrc0vj0H3TJfV4CsNO6jHvx6rU=; b=a/YEvUf/nAKJVBl4qqUsJl/bg4hh0zV9jemc/EFkS54pJOFEKJ0M/R4AOtNma6rF7JwCVl p16cFPZJ3plzAIYPbWpZLNFqDa6CJDFc+biet4wQgOdxokYUaM0mVzZV0ioYOLVreFpXE6 jaU4ArfZ++mbk4T7uyJcRA1YVFt8NiQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1698256919; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4c0JG7/Ou91Dnr1ipZrc0vj0H3TJfV4CsNO6jHvx6rU=; b=I9dIQnI6GJxeHrrAtlWYWnyrdR9F+D+AAwctzRftT/v3J2i3Mbwp+Dy/RURU3IGra6wQrL MlsQivkiormHSfBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 61A8013524; Wed, 25 Oct 2023 18:01:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qtyhEBdYOWUBcgAAMHmgww (envelope-from ); Wed, 25 Oct 2023 18:01:59 +0000 From: Petr Vorel To: linux-nfs@vger.kernel.org Cc: Petr Vorel , Olga Kornievskaia , Steve Dickson , Petr Vorel Subject: [PATCH 1/1] libtirpc: Add detection for new rpc_gss_sec members Date: Wed, 25 Oct 2023 20:01:41 +0200 Message-ID: <20231025180141.416189-1-pvorel@suse.cz> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 11:02:05 -0700 (PDT) From: Petr Vorel 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 --- 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 , update libtirpc or run with --disable-gss])], + [#include ])]) AC_SUBST([AM_CPPFLAGS]) AC_SUBST(LIBTIRPC) -- 2.42.0