+/* Windows NT security identifier (user or group) */
+typedef struct {
+
+ u8 revision;
+ u8 sub_authority_count;
+
+ /* Identifies the authority that issued the SID */
+ u8 identifier_authority[6];
+
+ le32 sub_authority[];
+} _packed_attribute wimlib_SID;
+
+/* Header of a Windows NT access control list */
+typedef struct {
+ /* ACL_REVISION or ACL_REVISION_DS */
+ u8 revision;
+
+ /* padding */
+ u8 sbz1;
+
+ /* Total size of the ACL, including all access control entries */
+ le16 acl_size;
+
+ /* Number of access control entry structures that follow the ACL
+ * structure */
+ le16 ace_count;
+
+ /* padding */
+ le16 sbz2;
+} _packed_attribute wimlib_ACL;
+
+#define wimlib_ACCESS_ALLOWED_ACE_TYPE 0
+#define wimlib_ACCESS_DENIED_ACE_TYPE 1
+#define wimlib_SYSTEM_AUDIT_ACE_TYPE 2
+