Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Nov 2018 18:02:59 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341158 - stable/12/tests/sys/acl
Message-ID:  <201811281802.wASI2xjn030626@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Wed Nov 28 18:02:59 2018
New Revision: 341158
URL: https://svnweb.freebsd.org/changeset/base/341158

Log:
  MFC r339795:
  Add a very basic regression test for setfacl -R with NFSv4 ACLs.

Modified:
  stable/12/tests/sys/acl/tools-nfs4-psarc.test
  stable/12/tests/sys/acl/tools-nfs4.test
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/tests/sys/acl/tools-nfs4-psarc.test
==============================================================================
--- stable/12/tests/sys/acl/tools-nfs4-psarc.test	Wed Nov 28 17:40:08 2018	(r341157)
+++ stable/12/tests/sys/acl/tools-nfs4-psarc.test	Wed Nov 28 18:02:59 2018	(r341158)
@@ -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: stable/12/tests/sys/acl/tools-nfs4.test
==============================================================================
--- stable/12/tests/sys/acl/tools-nfs4.test	Wed Nov 28 17:40:08 2018	(r341157)
+++ stable/12/tests/sys/acl/tools-nfs4.test	Wed Nov 28 18:02:59 2018	(r341158)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811281802.wASI2xjn030626>