Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5932123ybi; Wed, 31 Jul 2019 05:41:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBI3x1knSt20LRyiAe26hyMnn4jTNMeydtaKm813Hu46guFsMzAzEQPzPQW67xrOViwRCd X-Received: by 2002:a17:902:6ac6:: with SMTP id i6mr121025057plt.233.1564576905684; Wed, 31 Jul 2019 05:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564576905; cv=none; d=google.com; s=arc-20160816; b=oM8weRdNdTIMLRN2tPdhWtgYKz5KO807ybJropR/2O9/UJPFa21K/chOhhFeDnhNoZ jR05mF8iGFUYCuPMZQK0qaHCpl1EGG5rjap9kG8nL1MXZZT5QhBA2uWuNJ8yUWwFypHg wVDCaI6ZjUI3nlx6lsDJ2WqU7Rwfu//G6NWlIIc1DzUUcEY9BKpmO3eNwu7e2rNnaSxP JXknhD30oI0ucHE4Myd6IOMoUgP/vaNU0/95TNb0weRXf+RB90iyJtsmOUp0asH2e8lt pZygjoyHj9wbbDaRE7yoGxOmFuy3L9Miv4ymxdETzdbRBtPFkMwj1TYnctgQcUj9CACc DqYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=I3Q7Gdbfh1xBkfM1r6DPtBEFr/ZTpqUZu9TKd7mDI8I=; b=UWLPYVpJo/MJ+HhPW8eZUBr7Sw8KWuBjWdwVrznc5vkZ+ylHtUEntRlIsbQBO1PmsJ NlzSIE8903TOBUDS6DoKu6wCtt/ywXZnwYWPTiEaULwLIJ1Cb/cPB11So+3U9UH7xHuW jOjasGQ3u5lIlFAJhrWo8vZU7qQuUko5z3UX4eGEfZD8hIMDomBMKuQJVLP3ePhLenjj saPFqUZIgXIObwwOy4bMN2DzMvsk5CsuE775+sRH8fTrH5e1wkWsmaaE5KCbr05KmGiM PIJMTjz7rtagQugx6RWhyOlPXh3GzJKbagaz2M7Jfpihw+hgTnYByzowyaosgIJn2xsG kC3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si9268236pgh.570.2019.07.31.05.41.30; Wed, 31 Jul 2019 05:41:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726807AbfGaMLe (ORCPT + 99 others); Wed, 31 Jul 2019 08:11:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33818 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfGaMLe (ORCPT ); Wed, 31 Jul 2019 08:11:34 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1E279308424C; Wed, 31 Jul 2019 12:11:34 +0000 (UTC) Received: from coeurl.usersys.redhat.com (ovpn-120-110.rdu2.redhat.com [10.10.120.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id EDE9119C70; Wed, 31 Jul 2019 12:11:33 +0000 (UTC) Received: by coeurl.usersys.redhat.com (Postfix, from userid 1000) id 998EC20BD0; Wed, 31 Jul 2019 08:11:33 -0400 (EDT) Date: Wed, 31 Jul 2019 08:11:33 -0400 From: Scott Mayhew To: "J. Bruce Fields" Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH RFC 0/2] nfsd: add principal to the data being tracked by nfsdcld Message-ID: <20190731121133.GQ4131@coeurl.usersys.redhat.com> References: <20190730210847.9804-1-smayhew@redhat.com> <20190730215428.GB3544@fieldses.org> <20190730215654.GC3544@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730215654.GC3544@fieldses.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 31 Jul 2019 12:11:34 +0000 (UTC) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, 30 Jul 2019, J. Bruce Fields wrote: > On Tue, Jul 30, 2019 at 05:54:28PM -0400, J. Bruce Fields wrote: > > How does it fail when principals are longer? Does it error out, or > > treat two principals as equal if they agree in the first 1024 bytes? > > I guess it's being compared against a string passed from gss-proxy? We > could also check for limits there. I'm using cr_principal (servicetype@hostname) since it's set by both gssproxy and rpc.svcgssd. cr_raw_principal (servicetype/hostname@REALM) is only set by gssproxy. -Scott > > --b.