nfs4acl_xattr: add RFC compliant NFS 4.0 and 4.1 ACL defintions
authorRalph Boehme <slow@samba.org>
Mon, 26 Nov 2018 15:30:38 +0000 (16:30 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 19:21:25 +0000 (19:21 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/nfs41acl.x

index 1a2e1d639e57fe0477fb90da0fdaec542f489767..51ac89a079193d27fc7a0bff0ec61971e40c8ebb 100644 (file)
@@ -70,6 +70,14 @@ const ACE4_SYNCHRONIZE          = 0x00100000;
 
 typedef u_int acemask4;
 
+/* ACL structure definition as per RFC 7530 Section-6.2.1 */
+struct nfsace4 {
+        acetype4        type;
+        aceflag4        flag;
+        acemask4        access_mask;
+        utf8str_mixed   who;
+};
+
 struct nfsace4i {
         acetype4        type;
         aceflag4        flag;
@@ -88,6 +96,15 @@ const ACL4_DEFAULTED            = 0x00000004;
 
 typedef u_int aclflag4;
 
+struct nfsacl40 {
+        nfsace4         na40_aces<>;
+};
+
+struct nfsacl41 {
+        aclflag4        na41_flag;
+        nfsace4         na41_aces<>;
+};
+
 struct nfsacl41i {
         aclflag4        na41_flag;
         nfsace4i        na41_aces<>;