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
16 const string XATTR_DOSATTRIB_NAME = "user.DosAttrib";
17 const string XATTR_DOSATTRIB_ESTIMATED_SIZE = 64;
19 /* we store basic dos attributes in a DosAttrib xattr. By
20 using a union we can cope with new version of this
21 structure more easily */
32 const int XATTR_ATTRIB_FLAG_STICKY_WRITE_TIME = 0x1;
42 NTTIME write_time; /* only used when sticky write time is set */
43 utf8string name; /* will be used for case-insensitive speedup */
47 [case(1)] xattr_DosInfo1 info1;
48 [case(2)] xattr_DosInfo2 info2;
51 typedef [public] struct {
53 [switch_is(version)] xattr_DosInfo info;
57 /* we store DOS style extended attributes in a DosEAs xattr */
58 const string XATTR_DOSEAS_NAME = "user.DosEAs";
65 typedef [public] struct {
67 [size_is(num_eas)] xattr_EA *eas;
70 /* we store stream information in this xattr structure. Then
71 the streams themselves are stored in
72 user.DosStream.STREAMNAME or in external files, according
74 const string XATTR_DOSSTREAMS_NAME = "user.DosStreams";
76 const int XATTR_STREAM_FLAG_INTERNAL = 0x00000001;
78 /* stream data is stored in attributes with the given prefix */
79 const string XATTR_DOSSTREAM_PREFIX = "user.DosStream.";
81 const int XATTR_MAX_STREAM_SIZE = 0x4000;
90 typedef [public] struct {
92 [size_is(num_streams)] xattr_DosStream *streams;
96 /* we store the NT ACL a NTACL xattr. It is versioned so we
97 can later add other acl attribs (such as posix acl mapping)
99 we put this xattr in the security namespace to ensure that
100 only trusted users can write to the ACL
102 const string XATTR_NTACL_NAME = "security.NTACL";
105 [case(1)] security_descriptor *sd;
108 typedef [public] struct {
110 [switch_is(version)] xattr_NTACL_Info info;