4 IDL structures for xattr file attributes
6 this has nothing to do with RPC, we are just using our NDR/IDL
7 infrastructure as a convenient way to store linearised information
8 about a file in a architecture independent manner
11 import "security.idl";
14 pointer_default(unique)
18 const char *XATTR_DOSATTRIB_NAME = "user.DosAttrib";
19 const int XATTR_DOSATTRIB_ESTIMATED_SIZE = 64;
21 /* we store basic dos attributes in a DosAttrib xattr. By
22 using a union we can cope with new version of this
23 structure more easily */
34 const int XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME = 0x1;
44 NTTIME write_time; /* only used when sticky write time is set */
48 typedef [switch_type(uint16)] union {
49 [case(1)] xattr_DosInfo1 info1;
50 [case(2)] xattr_DosInfo2 info2;
53 typedef [public] struct {
55 [switch_is(version)] xattr_DosInfo info;
59 /* we store DOS style extended attributes in a DosEAs xattr */
60 const char *XATTR_DOSEAS_NAME = "user.DosEAs";
67 typedef [public] struct {
69 [size_is(num_eas)] xattr_EA *eas;
72 /* we store stream information in this xattr structure. Then
73 the streams themselves are stored in
74 user.DosStream.STREAMNAME or in external files, according
76 const char *XATTR_DOSSTREAMS_NAME = "user.DosStreams";
78 const int XATTR_STREAM_FLAG_INTERNAL = 0x00000001;
80 /* stream data is stored in attributes with the given prefix */
81 const char *XATTR_DOSSTREAM_PREFIX = "user.DosStream.";
83 const int XATTR_MAX_STREAM_SIZE = 0x4000;
92 typedef [public] struct {
94 [size_is(num_streams)] xattr_DosStream *streams;
98 /* we store the NT ACL a NTACL xattr. It is versioned so we
99 can later add other acl attribs (such as posix acl mapping)
101 we put this xattr in the security namespace to ensure that
102 only trusted users can write to the ACL
104 const char *XATTR_NTACL_NAME = "security.NTACL";
106 typedef [switch_type(uint16)] union {
107 [case(1)] security_descriptor *sd;
110 typedef [public] struct {
112 [switch_is(version)] xattr_NTACL_Info info;