Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2260019iob; Sun, 15 May 2022 12:57:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHOZZsjM/PS7HkqPudQGQ69M2iBQDUYrRJqUAnKyFI4/dhT3E5acJqLim0hiQbaBWgetLl X-Received: by 2002:a05:600c:42c3:b0:394:7ef8:41c2 with SMTP id j3-20020a05600c42c300b003947ef841c2mr13655870wme.50.1652644668722; Sun, 15 May 2022 12:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652644668; cv=none; d=google.com; s=arc-20160816; b=ATt1oSY10e90njjklLr0sp7sHeb93CwkzcF60tOtdxlDCdCNAUbGD7uAjHwmX8ZGXD kgnd3PPxK9bxWw1vBlPg0P7WTA7bUl3xy9DXa/gE8f/vZX2em5WrN4kPIID7R69sEwB8 4m9959F0AtsDa2KpG3SAQzrG2vBJ75GhsMjEZ6FOLY5gNvl0NSoPN9fzVpCw90FtGPXa dOsMf6W8PByQnlLUkIHKmauXAAO7/OJNoIRVmL9wsczjlTvhbZ5DVChcJzMV76MXAsba v95puBFTfVytaO6NiLSzqqurPA9ZzbZpL/ZYg2+tT7+lZ7LTIRE5/E9nu+6wUDr7/+w+ iHnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=GMYdsCBCj3TGW3DG1ozLxaC75Un7iB+CKMvrAMqrF5U=; b=AqJSlyooNaKU3651TzuWrMqXE6Ljo2Vf3SvIbissu3bmrdRouLQDzrC9+f1dSYFhuc 4ajctfSQMj44U/fOhPOYakiF67F+byi2IZ6Fi0fKmpQxW0G5OXXwXt9b3bjFo6IRFvqW 6ITkapwRL8CVzLmRrVKQ2xjA62mVVyFCNvea/rDcXTDEPVb1L07gA1x1CldcDOYsMaJ9 AjY2UFKLdaVEUDXyGe8+Nj0/nAByY9zI60wbvxD6RISCqc2yL3uOAZHTRklIgiU/M5hv de128DDxW+t2ZZGcru0zjIOEZdVnmmDlhtwf68Dreb4YWvvG/0zsF9DPDNixTE1OCrBL zFgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=mrMFby3B; 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=fieldses.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj30-20020a0560001e1e00b0020acc0429a9si6775009wrb.948.2022.05.15.12.57.03; Sun, 15 May 2022 12:57:48 -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=@fieldses.org header.s=default header.b=mrMFby3B; 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=fieldses.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233660AbiEOB7t (ORCPT + 99 others); Sat, 14 May 2022 21:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233368AbiEOB7s (ORCPT ); Sat, 14 May 2022 21:59:48 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 428672B1B1 for ; Sat, 14 May 2022 18:59:47 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 3AA347159; Sat, 14 May 2022 21:59:46 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 3AA347159 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1652579986; bh=GMYdsCBCj3TGW3DG1ozLxaC75Un7iB+CKMvrAMqrF5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mrMFby3BsS/B9s2G+NrJEEb0OpRjOrAYYUkn1qydVE1Nd48DSzX/v+GGPewFsVpwr ZtDw9HFNufInrWv0OBhkuxTb7tp9o2523DNlhAb1BouxnlVnqdDriEA7biodqDypMN QSW0uamWaV2B31ePxLy/+oBBGXOwCEdQKROQQT5g= Date: Sat, 14 May 2022 21:59:46 -0400 From: "J.Bruce Fields" To: trondmy@kernel.org Cc: Steve Dickson , linux-nfs@vger.kernel.org Subject: Re: [PATCH 0/6] Allow nfs4-acl-tools to access 'dacl' and 'sacl' Message-ID: <20220515015946.GB30004@fieldses.org> References: <20220514144436.4298-1-trondmy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220514144436.4298-1-trondmy@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Sat, May 14, 2022 at 10:44:30AM -0400, trondmy@kernel.org wrote: > From: Trond Myklebust > > The following patch set matches the kernel patches to allow access to > the NFSv4.1 'dacl' and 'sacl' attributes. The current patches are very > basic, adding support for encoding/decoding the new attributes only when > the user specifies the '--dacl' or '--sacl' flags on the command line. Seems like a reasonable thing to do. I'd rather not be responsible for nfs4-acl-tools any longer, though. --b. > > Trond Myklebust (6): > libnfs4acl: Add helpers to set the dacl and sacl > libnfs4acl: Add support for the NFS4.1 ACE_INHERITED_ACE flag > The NFSv41 DACL and SACL prepend an extra field to the acl > nfs4_getacl: Add support for the --dacl and --sacl options > nfs4_setacl: Add support for the --dacl and --sacl options > Edit manpages to document the new --dacl, --sacl and inheritance > features > > include/libacl_nfs4.h | 18 +++++++ > include/nfs4.h | 6 +++ > libnfs4acl/Makefile | 2 + > libnfs4acl/acl_nfs4_copy_acl.c | 2 + > libnfs4acl/acl_nfs4_xattr_load.c | 14 +++++- > libnfs4acl/acl_nfs4_xattr_pack.c | 22 ++++++-- > libnfs4acl/nfs4_ace_from_string.c | 3 ++ > libnfs4acl/nfs4_get_ace_flags.c | 2 + > libnfs4acl/nfs4_getacl.c | 84 +++++++++++++++++++++++++++++++ > libnfs4acl/nfs4_new_acl.c | 1 + > libnfs4acl/nfs4_setacl.c | 49 ++++++++++++++++++ > man/man1/nfs4_getfacl.1 | 14 ++++++ > man/man1/nfs4_setfacl.1 | 8 +++ > man/man5/nfs4_acl.5 | 10 ++++ > nfs4_getfacl/nfs4_getfacl.c | 73 ++++++++++++++++++++++++--- > nfs4_setfacl/nfs4_setfacl.c | 67 ++++++++++++++++++++++-- > 16 files changed, 359 insertions(+), 16 deletions(-) > create mode 100644 libnfs4acl/nfs4_getacl.c > create mode 100644 libnfs4acl/nfs4_setacl.c > > -- > 2.36.1