Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp4524597lfc; Mon, 6 Jun 2022 11:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgKzyXNLNDB+MxAd3f3OIKAuxdbekFbVmYsvYeIJqEbU7ocxgNEgh3V/viRVZ3ZU545H2d X-Received: by 2002:a17:902:e891:b0:167:5d51:f381 with SMTP id w17-20020a170902e89100b001675d51f381mr14084706plg.75.1654539861666; Mon, 06 Jun 2022 11:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654539861; cv=none; d=google.com; s=arc-20160816; b=PaQ8Tkfct3KUQ/MIwBLDurpKWyGdtFSdkutDOx3XlwDIHGgKjHtiR5vyYR60iUHmn5 Rn2K0l41glbeLq+kfbI7XNeEmzviu5qfss5nKXCRmufrC3JvbpAfaOaiOXt9zL2kyPjc HlBYg6F1H9Hw0cK311jjYisMOG8m9cmGWpQjzKHalE/ChXRI6Fy7/ZlCJIRHa5ynxwXn fziXfNrh7Nwf7VQS3whsRRjs6kuL9iKhqKX5gitp0J5m7QErqZsC8KpngOHGlx65K8Rl GW/+Y3c5rSzr79afu5z09/7el03mXS3RfwIDrSBseQ5ezEh10eB4Qmj48XlQ4ObUrgod a91A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:from :content-transfer-encoding:date:mime-version; bh=o6ZDEjK3MJSazO2Ksbxtc4PGVgxzTPX9LvUGecvXdiw=; b=IzqbKYEgruqCC8Ep1+Nz47+yta3d1XefdHDbRrj8sgxXMo6YgkhLbz1h+XGd9wCPF6 kv4NggzSZmz3JERK774EEhUM01gz2o4y3NmuqsFx/Vz8mVHmXm3vbmP4nzy0gbkmkiXl +ueaXJyGNgG5AJH3xO0Ef92anx6Y/adI8gtT0l+TjTnACnAklDry4AjaO8TvyLE2KYk8 Rw0EZ5ww3p8bdzgPVmCTkhWxmFjl0xuvYmswbajv/zRgtziDyCRNUfoLZulJrDxVVWZh w3lJMTKN02a5RdQOsMAye1v2t+sEG8bypquSGZAAIeL+RPYM/wxjWsECZvxWXWgCfFVP ApmA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170902d2ce00b00163b1bfff0bsi25955908plc.232.2022.06.06.11.23.33; Mon, 06 Jun 2022 11:24:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbiFFSOH convert rfc822-to-8bit (ORCPT + 99 others); Mon, 6 Jun 2022 14:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiFFSOG (ORCPT ); Mon, 6 Jun 2022 14:14:06 -0400 Received: from mail.linux-ng.de (srv.linux-ng.de [5.9.18.165]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C50D05E172 for ; Mon, 6 Jun 2022 11:14:05 -0700 (PDT) Received: from cloud.linux-ng.de (srv.linux-ng.de [IPv6:2a01:4f8:160:92e6::2]) by mail.linux-ng.de (Postfix) with ESMTPSA id 256D983C4290 for ; Mon, 6 Jun 2022 20:14:05 +0200 (CEST) MIME-Version: 1.0 Date: Mon, 06 Jun 2022 18:14:05 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Mailer: RainLoop/1.16.0 From: marcel@linux-ng.de Message-ID: Subject: nfs-utils: rpc.svcgssd bug reading /etc/nfs.conf To: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 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. 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 Maybe someone can fix this for the next release. Best regards, Marcel