summaryrefslogtreecommitdiff
path: root/source3/modules/nfs41acl.x
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-11-26 16:30:38 +0100
committerJeremy Allison <jra@samba.org>2019-03-18 19:21:25 +0000
commit068721f4779eacfa6db870077713dc6037c1bcb5 (patch)
tree371cf766b8773059ea236585186235250b4ae1da /source3/modules/nfs41acl.x
parentba1fe6d11a0e3d5651150ddfb80f8fab7f5f7318 (diff)
downloadsamba-068721f4779eacfa6db870077713dc6037c1bcb5.tar.gz
nfs4acl_xattr: add RFC compliant NFS 4.0 and 4.1 ACL defintions
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/modules/nfs41acl.x')
-rw-r--r--source3/modules/nfs41acl.x17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/modules/nfs41acl.x b/source3/modules/nfs41acl.x
index 1a2e1d639e5..51ac89a0791 100644
--- a/source3/modules/nfs41acl.x
+++ b/source3/modules/nfs41acl.x
@@ -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<>;