PERFORCE change 147399 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Aug 14 17:31:57 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147399
Change 147399 by trasz at trasz_traszkan on 2008/08/14 17:31:11
Even more tests for inheritance. These are produced from ZFS
behaviour and test something that is not quite standard.
Affected files ...
.. //depot/projects/soc2008/trasz_nfs4acl/tools/regression/acltools/tools-nfs4.test#6 edit
Differences ...
==== //depot/projects/soc2008/trasz_nfs4acl/tools/regression/acltools/tools-nfs4.test#6 (text+ko) ====
@@ -606,6 +606,136 @@
> everyone@:rwxp---A-W-Co-:------:deny
> everyone@:------a-R-c--s:------:allow
+# There is some complication regarding how write_acl and write_owner flags
+# get inherited. Make sure we got it right.
+$ setfacl -b .
+$ setfacl -a0 u:42:Co:f:allow .
+$ setfacl -a0 u:43:Co:d:allow .
+$ setfacl -a0 u:44:Co:fd:allow .
+$ setfacl -a0 u:45:Co:fi:allow .
+$ setfacl -a0 u:46:Co:di:allow .
+$ setfacl -a0 u:47:Co:fdi:allow .
+$ setfacl -a0 u:48:Co:fn:allow .
+$ setfacl -a0 u:49:Co:dn:allow .
+$ setfacl -a0 u:50:Co:fdn:allow .
+$ setfacl -a0 u:51:Co:fni:allow .
+$ setfacl -a0 u:52:Co:dni:allow .
+$ setfacl -a0 u:53:Co:fdni:allow .
+$ umask 022
+$ rm xxx
+$ touch xxx
+$ getfacl -nq xxx
+> user:53:--------------:------:deny
+> user:53:--------------:------:allow
+> user:51:--------------:------:deny
+> user:51:--------------:------:allow
+> user:50:--------------:------:deny
+> user:50:--------------:------:allow
+> user:48:--------------:------:deny
+> user:48:--------------:------:allow
+> user:47:--------------:------:deny
+> user:47:--------------:------:allow
+> user:45:--------------:------:deny
+> user:45:--------------:------:allow
+> user:44:--------------:------:deny
+> user:44:--------------:------:allow
+> user:42:--------------:------:deny
+> user:42:--------------:------:allow
+> owner@:--x-----------:------:deny
+> owner@:rw-p---A-W-Co-:------:allow
+> group@:-wxp----------:------:deny
+> group@:r-------------:------:allow
+> everyone@:-wxp---A-W-Co-:------:deny
+> everyone@:r-----a-R-c--s:------:allow
+
+$ rmdir yyy
+$ mkdir yyy
+$ getfacl -nq yyy
+> user:53:--------------:------:deny
+> user:53:--------------:------:allow
+> user:52:--------------:------:deny
+> user:52:--------------:------:allow
+> user:50:--------------:------:deny
+> user:50:--------------:------:allow
+> user:49:--------------:------:deny
+> user:49:--------------:------:allow
+> user:47:-----------Co-:fdi---:allow
+> user:47:--------------:------:deny
+> user:47:--------------:------:allow
+> user:46:-----------Co-:-di---:allow
+> user:46:--------------:------:deny
+> user:46:--------------:------:allow
+> user:45:--------------:f-i---:allow
+> user:44:-----------Co-:fdi---:allow
+> user:44:--------------:------:deny
+> user:44:--------------:------:allow
+> user:43:-----------Co-:-di---:allow
+> user:43:--------------:------:deny
+> user:43:--------------:------:allow
+> user:42:--------------:f-i---:allow
+> owner@:--------------:------:deny
+> owner@:rwxp---A-W-Co-:------:allow
+> group@:-w-p----------:------:deny
+> group@:r-x-----------:------:allow
+> everyone@:-w-p---A-W-Co-:------:deny
+> everyone@:r-x---a-R-c--s:------:allow
+
+$ setfacl -b .
+$ setfacl -a0 u:42:Co:f:deny .
+$ setfacl -a0 u:43:Co:d:deny .
+$ setfacl -a0 u:44:Co:fd:deny .
+$ setfacl -a0 u:45:Co:fi:deny .
+$ setfacl -a0 u:46:Co:di:deny .
+$ setfacl -a0 u:47:Co:fdi:deny .
+$ setfacl -a0 u:48:Co:fn:deny .
+$ setfacl -a0 u:49:Co:dn:deny .
+$ setfacl -a0 u:50:Co:fdn:deny .
+$ setfacl -a0 u:51:Co:fni:deny .
+$ setfacl -a0 u:52:Co:dni:deny .
+$ setfacl -a0 u:53:Co:fdni:deny .
+$ umask 022
+$ rm xxx
+$ touch xxx
+$ getfacl -nq xxx
+> user:53:-----------Co-:------:deny
+> user:51:-----------Co-:------:deny
+> user:50:-----------Co-:------:deny
+> user:48:-----------Co-:------:deny
+> user:47:-----------Co-:------:deny
+> user:45:-----------Co-:------:deny
+> user:44:-----------Co-:------:deny
+> user:42:-----------Co-:------:deny
+> owner@:--x-----------:------:deny
+> owner@:rw-p---A-W-Co-:------:allow
+> group@:-wxp----------:------:deny
+> group@:r-------------:------:allow
+> everyone@:-wxp---A-W-Co-:------:deny
+> everyone@:r-----a-R-c--s:------:allow
+
+$ rmdir yyy
+$ mkdir yyy
+$ getfacl -nq yyy
+> user:53:-----------Co-:------:deny
+> user:52:-----------Co-:------:deny
+> user:50:-----------Co-:------:deny
+> user:49:-----------Co-:------:deny
+> user:47:-----------Co-:fdi---:deny
+> user:47:-----------Co-:------:deny
+> user:46:-----------Co-:-di---:deny
+> user:46:-----------Co-:------:deny
+> user:45:-----------Co-:f-i---:deny
+> user:44:-----------Co-:fdi---:deny
+> user:44:-----------Co-:------:deny
+> user:43:-----------Co-:-di---:deny
+> user:43:-----------Co-:------:deny
+> user:42:-----------Co-:f-i---:deny
+> owner@:--------------:------:deny
+> owner@:rwxp---A-W-Co-:------:allow
+> group@:-w-p----------:------:deny
+> group@:r-x-----------:------:allow
+> everyone@:-w-p---A-W-Co-:------:deny
+> everyone@:r-x---a-R-c--s:------:allow
+
$ rmdir yyy
$ rm xxx
$ cd ..
More information about the p4-projects
mailing list