From owner-svn-src-head@freebsd.org Fri Oct 26 21:20:08 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 390861088D97; Fri, 26 Oct 2018 21:20:08 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E31276AC17; Fri, 26 Oct 2018 21:20:07 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D2AA226579; Fri, 26 Oct 2018 21:20:04 +0000 (UTC) (envelope-from markj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9QLK42A097870; Fri, 26 Oct 2018 21:20:04 GMT (envelope-from markj@FreeBSD.org) Received: (from markj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9QLK4AA097834; Fri, 26 Oct 2018 21:20:04 GMT (envelope-from markj@FreeBSD.org) Message-Id: <201810262120.w9QLK4AA097834@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: markj set sender to markj@FreeBSD.org using -f From: Mark Johnston Date: Fri, 26 Oct 2018 21:20:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339795 - head/tests/sys/acl X-SVN-Group: head X-SVN-Commit-Author: markj X-SVN-Commit-Paths: head/tests/sys/acl X-SVN-Commit-Revision: 339795 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 21:20:08 -0000 Author: markj Date: Fri Oct 26 21:20:04 2018 New Revision: 339795 URL: https://svnweb.freebsd.org/changeset/base/339795 Log: Add a very basic regression test for setfacl -R with NFSv4 ACLs. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Modified: head/tests/sys/acl/tools-nfs4-psarc.test head/tests/sys/acl/tools-nfs4.test Modified: head/tests/sys/acl/tools-nfs4-psarc.test ============================================================================== --- head/tests/sys/acl/tools-nfs4-psarc.test Fri Oct 26 21:17:50 2018 (r339794) +++ head/tests/sys/acl/tools-nfs4-psarc.test Fri Oct 26 21:20:04 2018 (r339795) @@ -557,6 +557,29 @@ $ rmdir yyy $ rm xxx $ cd .. $ rmdir ddd - $ rm xxx +# Test basic recursive setting of ACLs. +$ mkdir ddd +$ touch ddd/xxx +$ mkdir ddd/eee +$ touch ddd/eee/yyy +$ setfacl -R -m owner@:full_set:f:allow,group@:full_set::allow,everyone@:full_set::allow ddd +$ getfacl -q ddd +> owner@:rwxpDdaARWcCos:f------:allow +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/xxx +> owner@:rwxpDdaARWcCos:-------:allow +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/eee +> owner@:rwxpDdaARWcCos:f------:allow +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/eee/yyy +> owner@:rwxpDdaARWcCos:-------:allow +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:rwxpDdaARWcCos:-------:allow + +$ rm -r ddd Modified: head/tests/sys/acl/tools-nfs4.test ============================================================================== --- head/tests/sys/acl/tools-nfs4.test Fri Oct 26 21:17:50 2018 (r339794) +++ head/tests/sys/acl/tools-nfs4.test Fri Oct 26 21:20:04 2018 (r339795) @@ -823,6 +823,41 @@ $ rmdir yyy $ rm xxx $ cd .. $ rmdir ddd - $ rm xxx +# Test basic recursive setting of ACLs. +$ mkdir ddd +$ touch ddd/xxx +$ mkdir ddd/eee +$ touch ddd/eee/yyy +$ setfacl -R -m owner@:full_set:f:allow,group@:full_set::allow,everyone@:full_set::allow ddd +$ getfacl -q ddd +> owner@:--------------:-------:deny +> owner@:rwxpDdaARWcCos:f------:allow +> group@:-w-p----------:-------:deny +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:-w-p---A-W-Co-:-------:deny +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/xxx +> owner@:--x-----------:-------:deny +> owner@:rwxpDdaARWcCos:-------:allow +> group@:-wxp----------:-------:deny +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:-wxp---A-W-Co-:-------:deny +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/eee +> owner@:--------------:-------:deny +> owner@:rwxpDdaARWcCos:f------:allow +> group@:-w-p----------:-------:deny +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:-w-p---A-W-Co-:-------:deny +> everyone@:rwxpDdaARWcCos:-------:allow +$ getfacl -q ddd/eee/yyy +> owner@:--x-----------:-------:deny +> owner@:rwxpDdaARWcCos:-------:allow +> group@:-wxp----------:-------:deny +> group@:rwxpDdaARWcCos:-------:allow +> everyone@:-wxp---A-W-Co-:-------:deny +> everyone@:rwxpDdaARWcCos:-------:allow + +$ rm -r ddd