torture: smbtorture test case to verify Compound related handling
[Samba.git] / librpc / idl / nfs4acl.idl
blob10a60ed1caf42695ea7d5119dbb60af819ae8bde
1 #include "idl_types.h"
3 /*
4 NFS4 ACL format on disk
5 see http://www.suse.de/~agruen/nfs4acl/
6 */
8 import "misc.idl", "security.idl";
11 version(1.0),
12 pointer_default(unique)
14 interface nfs4acl_interface
16 const char *NFS4ACL_NDR_XATTR_NAME = "security.nfs4acl_ndr";
18 const char *NFS4ACL_XATTR_OWNER_WHO = "OWNER@";
19 const char *NFS4ACL_XATTR_GROUP_WHO = "GROUP@";
20 const char *NFS4ACL_XATTR_EVERYONE_WHO = "EVERYONE@";
22 const uint8 ACL4_XATTR_VERSION_40 = 0x00;
23 const uint8 ACL4_XATTR_VERSION_41 = 0x01;
24 const uint8 ACL4_XATTR_VERSION_DEFAULT = ACL4_XATTR_VERSION_41;
26 const uint8 ACL4_AUTO_INHERIT = 0x01;
27 const uint8 ACL4_PROTECTED = 0x02;
28 const uint8 ACL4_DEFAULTED = 0x04;
29 const uint8 ACL4_WRITE_THROUGH = 0x40;
31 /* these structures use the same bit values and other constants as
32 in security.idl */
33 typedef [flag(NDR_BIG_ENDIAN)] struct {
34 uint16 e_type;
35 uint16 e_flags;
36 uint32 e_mask;
37 uint32 e_id;
38 utf8string e_who;
39 [flag(NDR_ALIGN4)] DATA_BLOB _pad;
40 } nfs4ace;
42 typedef [public,flag(NDR_BIG_ENDIAN)] struct {
43 uint8 a_version;
44 uint8 a_flags;
45 uint16 a_count;
46 uint32 a_owner_mask;
47 uint32 a_group_mask;
48 uint32 a_other_mask;
49 nfs4ace ace[a_count];
50 } nfs4acl;