Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1394406iob; Sat, 14 May 2022 07:54:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1FFG3yMyXJYRfD9JvIZVdSlKri86wUn/7k9Gi3EgbBXVZkb6U2agqClF7YjU+mU7g9NfS X-Received: by 2002:a17:907:9053:b0:6f3:9f7e:5325 with SMTP id az19-20020a170907905300b006f39f7e5325mr8624943ejc.455.1652540052662; Sat, 14 May 2022 07:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652540052; cv=none; d=google.com; s=arc-20160816; b=IEtTbWei+feGtMunWkJ3v1dzF6Nd3itKUyE8mKUG98ouM/Sj2ItQmnxggPAvr4trtg syTOaMxHNFOu46R7vehSr60AqPjVZ+Rf6VWb5cHWnQNb+FiFQi1Jj0hoqRvHJo7dxXS/ ScN+A/stTGs9jW/ZqpK1xpjKT7N09t0E8HdykZgbyOSvnNIuo85Bdf/dOACQCZoIIF+F d2VraSL3ydLSzfcdi8NhtgkWGwYbUcbgL09zQtPGE3vC27JS4BqCWQze+BDgsSZr91iH Ts6bQHnZDTqOnVheEJHp9m+rLB1UTEgDmJJXPBNUincTWUNyeXrFrk30iBp75ZdRzSLs v0zw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=2uHdyrWf/0J5FiVbvxIAA42iAlAOmEs8e7plAPl6k8w=; b=vfAOG0ipkkJjYpc8IuUw5qMn0irGoFFH5H2krSC0/nRnTNK622aX2xmoE2KWgZv6MH wFMNIsOk2LguqnYAq6njVG+8RONJJsD+mm/+U5OTEJaT0YHJQOuYW/lmvs9A+D/pFCq5 1z7sEtkYlFJtY148Ok0brP1MYNHoNawGYl/lM5PMMXGM3fW34svuop3TH+j2K+4ba/jx QEwB7KXk2JORNIOuu/XMq9bXHGnXYXuompbfrz+GNQOCqmpOjmGN2PzPI9wWvQokaDI8 +sXSiD9NVAQ/8DcNZlvqH98SGMyskIQbtPk1i4MTfk/ggChsvUUkPzPcCxKMYqqZIlHl GrZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/A+/ipd"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht16-20020a170907609000b006e8cb75fd59si5347447ejc.723.2022.05.14.07.53.47; Sat, 14 May 2022 07:54:12 -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=@kernel.org header.s=k20201202 header.b="q/A+/ipd"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233484AbiENOvP (ORCPT + 99 others); Sat, 14 May 2022 10:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233698AbiENOvD (ORCPT ); Sat, 14 May 2022 10:51:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B685AA451 for ; Sat, 14 May 2022 07:50:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 554C360F47 for ; Sat, 14 May 2022 14:50:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8C7C34116; Sat, 14 May 2022 14:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652539842; bh=AxffH804IbJxdgJRI2Z+Xm+gT/miBEcDgrf32xjeZAo=; h=From:To:Cc:Subject:Date:From; b=q/A+/ipdisrljB11tczc1wH8oa3mLOn3g/DSOp8Tn7IryXb/PcfhlPuNDTQis/pwX 0zC0UweVHk2PyMzRDbSu74nKswsJCRxeHN1aSQRqx1W4jXa0hzNXECBe7Kx7XK2mBD jeXxdIeVDj0GPY+2ZgL+tqQJuq5umb5uOqy3hzMOWYxGdc3/FinenuHe6T8RAS19im lKzdLgdFujS0anb9nF7cErTRx7LgdMMkFXZw3ioQFSxtkCHm+LY8wPpRFMt1UDrnWY ljGPjTYCWKm3j05VJIlXLIuGO/K5GC1cGsh357wsg1niibqohekPG8SLMm52p6t4cn FR+khS4EMgQjg== From: trondmy@kernel.org To: Steve Dickson , "J.Bruce Fields" Cc: linux-nfs@vger.kernel.org Subject: [PATCH 0/6] Allow nfs4-acl-tools to access 'dacl' and 'sacl' Date: Sat, 14 May 2022 10:44:30 -0400 Message-Id: <20220514144436.4298-1-trondmy@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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. 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