Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7957246rwr; Wed, 10 May 2023 15:30:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6vNzUsYKfoY61bZywdD6j7fNizr26Jnb6Bangc28zJx7NdP5KmTXzWIUX/meGKT9xXoAcP X-Received: by 2002:a05:6a20:7f8a:b0:f5:c6e5:e65 with SMTP id d10-20020a056a207f8a00b000f5c6e50e65mr26074710pzj.7.1683757828978; Wed, 10 May 2023 15:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683757828; cv=none; d=google.com; s=arc-20160816; b=DcYiBorwTAWgfaWkrwuZS6Qqi3pe7++qYpGQ7D33HutXmFBnzZZpA6WyTMyzA5eFs0 pbjd0su3SwlLjMi22hqYFHLqI8zfngU+SHV/xdr7mM5IeH+Alx7Rk6tzbvKsBdsuptOo rha35D906TyTKrgfi8zSvJodDpkUceECmQCZEfjaUd86iklLDs/irnl1N0S5GIo4+kJz w7JZcs2V/e2i2jlE7SkgRvPDZDBjVHTsj+WbdZaAcZ/GWc7bJyWLTPLP3V2KLV5JNTTY xCDKTOZHTJQz4oJ18lOqXdxFQUFbzSG2nVNu0rGdR7Qu6evLyRdeuO1CYYoGymXigm8h zy7w== 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 :user-agent:message-id:date:cc:to:from:subject:dkim-signature :dkim-signature; bh=yZtzmoDaVFZHPDzIQg8NofrbYCWGhiDyPuVFLjKA3qA=; b=pUKIu7ZahAly6kbHUoa4R7CweDrnKVPVDAcIw0Zn0zfwJXhNwLgSLuxUCvq8Zwae05 6asG4xhF7Ogss/b0t+QoAqQdtk6vr2xPGqJvsTfTLfJ8cbjsMXYMystPfCZ4IA4gW+zY l6/1LOsTowiJd1PZO2Xs12cDz/Evjp0A1BTLMyRyKVcfrYdk1+SlLo3oU3B2mBpsrR70 gGfazRqPz2m9l+M7Oo/BjtxV34d8O1dZuB8TdCGbnmftTm08pA+PDGEpeUWcIjA3JZFL QQnUmkJsTT6UB3u3hvdILcpPF4ICWirUQMcrki3KQS+laYWKIUY5gxyfnEcOkIXYV1+s jUyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=NynIjwvZ; dkim=neutral (no key) header.i=@suse.de header.b="XYBrX+X/"; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j192-20020a638bc9000000b005303a7ca051si4873181pge.284.2023.05.10.15.30.13; Wed, 10 May 2023 15:30:28 -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=@suse.de header.s=susede2_rsa header.b=NynIjwvZ; dkim=neutral (no key) header.i=@suse.de header.b="XYBrX+X/"; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbjEJW1z (ORCPT + 99 others); Wed, 10 May 2023 18:27:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbjEJW1y (ORCPT ); Wed, 10 May 2023 18:27:54 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3FC6E53 for ; Wed, 10 May 2023 15:27:52 -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 687681FD72; Wed, 10 May 2023 22:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683757671; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yZtzmoDaVFZHPDzIQg8NofrbYCWGhiDyPuVFLjKA3qA=; b=NynIjwvZFbSaZAOGC5WxexyruzM2dnBHGw51jushxqRbjduThtXqNB7sWyyY4n2sR2s7ms OztDYxuXVqb8ZKqrUDm2o0Nv74ePBIIaCUVxMhYPl2NvL+38rlPmcxnfQq8jPsx13wPyuB CWS0hTeh1ogX+4cZbmmnsIV6KRJRO8Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683757671; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yZtzmoDaVFZHPDzIQg8NofrbYCWGhiDyPuVFLjKA3qA=; b=XYBrX+X/1O0uoc1DHWzBGErIxsOYxHDP3k8jrxURUQ33bIv59Qy7Bq9Hp3etWZ5X9vyO/5 fUNnwR3Q59OjRTDw== 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 6146813519; Wed, 10 May 2023 22:27:49 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id OXJRBmUaXGRnDAAAMHmgww (envelope-from ); Wed, 10 May 2023 22:27:49 +0000 Subject: [PATCH 0/2] Support abstract addresses for rpcbind in rpcbind From: NeilBrown To: Jeff Layton , Trond Myklebust Cc: linux-nfs@vger.kernel.org, Petr Vorel , Nikita Yushchenko , Steve Dickson Date: Thu, 11 May 2023 08:27:36 +1000 Message-ID: <168375751051.30997.11634044913854205425.stgit@noble.brown> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 If the previous patch sets to the kernel and the libtirpc are accepted, we need rpcbind to listen on the new abstract address. We could unconditionally listen, but as current libtirpc rejects sockets bound to abstract addresses, this would result in unsightly errors. So only add the new ListenStream to rpcbind.socket if it is likely to work. Also enhance rpcinfo to use the new abstract address if possible. NeilBrown --- NeilBrown (2): Listen on an AF_UNIX abstract address if supported. rpcinfo: try connecting using abstract address. configure.ac | 13 ++++++++++++- src/rpcinfo.c | 24 +++++++++++++++++++++++- systemd/rpcbind.socket | 18 ------------------ systemd/rpcbind.socket.in | 19 +++++++++++++++++++ 4 files changed, 54 insertions(+), 20 deletions(-) delete mode 100644 systemd/rpcbind.socket create mode 100644 systemd/rpcbind.socket.in -- Signature