Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 21:20:04 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339795 - head/tests/sys/acl
Message-ID:  <201810262120.w9QLK4AA097834@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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