Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp362158pxa; Fri, 21 Aug 2020 09:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuL0V4Jf3bsoa0TdqZFWC/m5Nd4OkzDw3Ymy+hE3XMMyoRlUDwx1Ue6Sap2VzhkExbYG7l X-Received: by 2002:aa7:c88f:: with SMTP id p15mr3569985eds.33.1598026064022; Fri, 21 Aug 2020 09:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598026064; cv=none; d=google.com; s=arc-20160816; b=Df2VpL5FL5ArB5mhLxbTMFeEkUkbxd7ttDOFyDHulYsvYYpaS9bdWPhgQFfpsQRW1n U96x00JfPN8gDGPygfQBnjQJ/8dASOHPv/YbeiYaVK6pVxrEmpQn0imTvVhtRYgXggB+ EbUHgVcMf/fhAUwNJWIqMYBGTe3FhYzHPN4/e2FZcyqbU7TxXPBtzIJU/HmwaN2/Xr8O s3Zco7ZGC6tSeYLCxCFFPdCTu0byZCdXT8M7EjwYPIFoGsrc4KVapsc4TUs7slsRiDcu mInbvOGe7g5lED2UqFEqdMjGPOfc30Yr/0MdzdqvAt63WDpDf/pnM6TIt/d9apIPXC+S r+tA== 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:cc:to:from :date:subject:dkim-signature; bh=5UldaKTyngQcxUp0JS2jhLGvIH8ek+w5BwOPPdt5G74=; b=GFcA5V+D7TdtIpfjOR5hlQT+VjlDAkvSSTt49xYJPOYYWac4lb9MNJKrVt0eaA2llO dFm1KxjkaRSrQ1sWCRrA9Rq/KrESJwZjJkgp6W9CWpEDHmd5SBiOhc4H2CCG99Q1ocAT c009Bmnc9XxGWvDdZbaBB0zsvos2KLcioENiQtJauESl3tInUDD+X1cdwG14Eafo3ION Yfgv2649il977K8Re3LqGU1fnJNlhOljVjDgYy5JTjwh2MMd3a9g00CxWjnYlQ5i+zSu XX/Q1ywyj78PxNH8xrde8f+yM05kMUnqW0dEck7rgbE649AwlehQCVFDW04at7r1Ha2Q 4RjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CDHcGn8u; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds22si1602393ejc.535.2020.08.21.09.07.08; Fri, 21 Aug 2020 09:07:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CDHcGn8u; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725873AbgHUQDu (ORCPT + 99 others); Fri, 21 Aug 2020 12:03:50 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:59064 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgHUQDt (ORCPT ); Fri, 21 Aug 2020 12:03:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598025829; x=1629561829; h=date:from:to:cc:message-id:references:mime-version: in-reply-to:subject; bh=5UldaKTyngQcxUp0JS2jhLGvIH8ek+w5BwOPPdt5G74=; b=CDHcGn8ubf/6T8AEd/vPZMgvdw+nLWo0ON3ypobx701UAGPfjUMDDjGa il96PgrycqhUz3m6jDa7jPiGrHE9NfiDuAiEhvWS4xcw3J/56CRzLvR4d ik24qH9Z3CJZMm0jibIwOwyG4Y3YN3R8fvIkzip0OPBPXquZ0CwXsrrKe E=; X-IronPort-AV: E=Sophos;i="5.76,337,1592870400"; d="scan'208";a="69904285" Subject: Re: [PATCH v3 12/13] NFSv4.2: hook in the user extended attribute handlers Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 21 Aug 2020 16:03:41 +0000 Received: from EX13MTAUEE002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com (Postfix) with ESMTPS id ABD86A2999; Fri, 21 Aug 2020 16:03:39 +0000 (UTC) Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX13MTAUEE002.ant.amazon.com (10.43.62.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 Aug 2020 16:03:39 +0000 Received: from dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (172.23.141.97) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 21 Aug 2020 16:03:39 +0000 Received: by dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (Postfix, from userid 6262777) id E7CB4C14DA; Fri, 21 Aug 2020 16:03:38 +0000 (UTC) Date: Fri, 21 Aug 2020 16:03:38 +0000 From: Frank van der Linden To: Murphy Zhou CC: linux-nfs , Anna Schumaker , Trond Myklebust Message-ID: <20200821160338.GA30541@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com> References: <20200623223904.31643-1-fllinden@amazon.com> <20200623223904.31643-13-fllinden@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Aug 21, 2020 at 02:50:59PM +0800, Murphy Zhou wrote: > Hi, > > On Wed, Jun 24, 2020 at 6:51 AM Frank van der Linden > wrote: [...] > > static const struct inode_operations nfs4_dir_inode_operations = { > > @@ -10146,10 +10254,21 @@ static const struct xattr_handler nfs4_xattr_nfs4_acl_handler = { > > .set = nfs4_xattr_set_nfs4_acl, > > }; > > > > +#ifdef CONFIG_NFS_V4_2 > > +static const struct xattr_handler nfs4_xattr_nfs4_user_handler = { > > + .prefix = XATTR_USER_PREFIX, > > + .get = nfs4_xattr_get_nfs4_user, > > + .set = nfs4_xattr_set_nfs4_user, > > +}; > > +#endif > > + > > Any plan to support XATTR_TRUSTED_PREFIX ? > > Thanks. This is an implementation of RFC 8276, which explicitly restricts itself to the "user" namespace. There is currently no portable way to implement the "trusted" namespace within the boundaries of the NFS specification(s), so it's not supported. - Frank