Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp844277iof; Mon, 6 Jun 2022 13:38:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdJvmqF7JDuso9bvEnTkycpGB1bS0YtcEdaL5wj9rJb6ybrxQvuMaVLdBzOMs0uIXIMi3B X-Received: by 2002:a17:907:761c:b0:6d6:e553:7bd1 with SMTP id jx28-20020a170907761c00b006d6e5537bd1mr22910339ejc.5.1654547920394; Mon, 06 Jun 2022 13:38:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654547920; cv=none; d=google.com; s=arc-20160816; b=hcMKGF6YZ+Z7HQnaSGfn2u7P490KYnM7pj0RIc9BTxSR7QjJMZ4KCb63FIRkydsF3D reMf1p5vKMz/lsGesTmurqwrlFzUoS5P2vzAliQOIfDQ6IjdPiVg3fHm0FH6O+Mm401w qvpCNRZtHrLnr+o+QIs018OHwZ2IyzFSO76S6KjQ2w8qCbuBlnAb0DfZEQ7o1oKja4lt rzXqLWG1mdKPk5ITwDfckny8qYXvJtcov9Ato8BUukcxFitEnrFHxTQbci8LlxzzP6bQ AkX0lZ2J9REwD93fncPCbbcRzfzJRAQlwlbKfamDQBcliOZKkMYP7Cbl2RG2d26qII9z ASbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=rUOm5nW2jIzp7hBhCtR8BVpn4Nh4LsKZJd2QYQQqCpI=; b=Yemr/cpRukRpeQ4DZYcJcGpoZY6R5n3HpieBI+3MUSqRrn/HSUA3E0YQFZ8LW4TijI tbGajzQMfHth6bKjiyi8V7waCmefodilk40giY+SnBuRZpjM9kVIZt+vcd+hd7iIB1UG aWZYCiJYOLjWoNAScoCZ0993FdOAUq5jBEb8iYI198bJpTq+c41I0n//RlqibsyRXIYj NzW63UFinub5/q+W249elxwt0LZdkVKdVbHzR8VEcPz5I0YEnNCiPQn9FvZd8P1k6vRY KvocjgzY/kD0SdmTUIoBbkx2OwFuyUDMhWUwpXp7L1Ny+/MfCBCZ169py8jqSOWyJoOR YiBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LCVTI7vY; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd17-20020a1709069b9100b006fdf516f015si7680620ejc.856.2022.06.06.13.38.04; Mon, 06 Jun 2022 13:38:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LCVTI7vY; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231809AbiFFS3X (ORCPT + 99 others); Mon, 6 Jun 2022 14:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231820AbiFFS3V (ORCPT ); Mon, 6 Jun 2022 14:29:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D6AF6BFF5 for ; Mon, 6 Jun 2022 11:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654540158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rUOm5nW2jIzp7hBhCtR8BVpn4Nh4LsKZJd2QYQQqCpI=; b=LCVTI7vY4BawdQ5E9hGXa1uvaK0vf364IX70i/eMJzGvKUYdNQO9iDFAW1BMvXeUuabDY5 AYwW8lz1wfLM+uugmA1y3aGrI/X8+Y6qK5gzI69mCrithTwBc2E6hnovXeafmPUV6Ld7Jb 56vjdg0KLVO0M8uuaLSuqEVKNgsjyMc= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-402-W1RSsp_dMNelWpHGRUIX7w-1; Mon, 06 Jun 2022 14:29:16 -0400 X-MC-Unique: W1RSsp_dMNelWpHGRUIX7w-1 Received: by mail-qk1-f197.google.com with SMTP id q7-20020a05620a0d8700b006a6b5428cb1so3731931qkl.2 for ; Mon, 06 Jun 2022 11:29:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=rUOm5nW2jIzp7hBhCtR8BVpn4Nh4LsKZJd2QYQQqCpI=; b=x0x5chE1cRJumzXDGEZu7fGWpdjRLD2dymNbWdNWIunyiRo2Hiac2PMrYoYt/Ceikw aVSySr+ulmdx5b1MckgG5iJgkSGo/G0uCiMaawn55KRoc3Q3aKuaz/KjNNIGC2uYm0CI xWXexDI52yekzo7SAKbDdhbsUCvGHDP0dQ9Hyw8zcd0KxdISOUC8y/DzIsyd1GOtBHW9 cslADR89wPJLgdRcwArI+OC2iTHMZtAsK2IjANrMXvG93Fh6hSAR1wdTQD8/N4MHNAtX mxUNgptiGA8FTaEVsF6Y3/5jRXLx8oKQvtXii6ZRjdnxCH97mD2FHKmLdS7cOZZsOcdo sglg== X-Gm-Message-State: AOAM531v9Vm5cfUl77SBEcAtsIrdBgus7sPviiDcOVKdcVD1HmAq6lBa /+lx6CyCckwJO81Q6MStdLUk46sM3KfQKEYF9bDwRkjqPJx3Sq06Xnfuv+bP01wRURoA08gzWBz Wky7Ssm+KlDpg2ugdpvnp X-Received: by 2002:a37:9d86:0:b0:6a6:9631:db0d with SMTP id g128-20020a379d86000000b006a69631db0dmr12970986qke.473.1654540155860; Mon, 06 Jun 2022 11:29:15 -0700 (PDT) X-Received: by 2002:a37:9d86:0:b0:6a6:9631:db0d with SMTP id g128-20020a379d86000000b006a69631db0dmr12970966qke.473.1654540155572; Mon, 06 Jun 2022 11:29:15 -0700 (PDT) Received: from [172.31.1.6] ([71.161.96.106]) by smtp.gmail.com with ESMTPSA id 21-20020ac84e95000000b002f90a33c78csm11645310qtp.67.2022.06.06.11.29.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jun 2022 11:29:15 -0700 (PDT) Message-ID: <35aabd94-068a-3ef3-c52c-3b30a2bf5c71@redhat.com> Date: Mon, 6 Jun 2022 14:29:14 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: nfs-utils: rpc.svcgssd bug reading /etc/nfs.conf Content-Language: en-US To: marcel@linux-ng.de, linux-nfs@vger.kernel.org References: From: Steve Dickson In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hello, On 6/6/22 2:14 PM, marcel@linux-ng.de wrote: > Hi there, > > please don't hesitate to direct me somewhere else in case this is not the right place to report > bugs concerning nfs-utils. > > I found a bug in nfs-utils concerning the rpc.svcgssd daemon while I was trying to set the > principal name in /etc/nfs.conf: > > [svcgssd] > principal=nfs/myhost.mydomain.de@MYDOMAIN.DE > > However rpc.svcgssd refused to start - complaining about not being able to find the principal in > the keytab. > When specified on command line (using the -p option) things worked however. > > So I took a look at the code and found the problem in nfs-utils-2.6.1/utils/gssd/svcgssd.c. > The problem seems to be here: > > /* We don't need the config anymore */ > conf_cleanup(); > > This is called right after parsing the config file(s), but before calling gssd_acquire_cred(). > At the time it is called the variable "principal" does no longer contain the data read from the > config file. > > Moving conf_cleanup() to the end of the code helps.Could you please set a patch that shows where you moved this call? > > As I first encountered this on Ubuntu 22.04 I also opened a Launchpad bug report: > s. https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745 Unfortunately I don't get notified when these get open.... https://bugzilla.linux-nfs.org/ would be a better place. > > Maybe someone can fix this for the next release. Sure... send a patch and we can make it happen! steved. > > Best regards, > Marcel >