From 6e02dba98205b62015ad6f579e33b4048626fe09 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Mar 2018 16:39:11 +0000 Subject: sd & acl helper structures: added nt_sd_common_{data|meta|buffer}. --- include/ntapi/nt_acl.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/include/ntapi/nt_acl.h b/include/ntapi/nt_acl.h index 0eb6e35..0ae8509 100644 --- a/include/ntapi/nt_acl.h +++ b/include/ntapi/nt_acl.h @@ -106,4 +106,43 @@ typedef struct _nt_system_mandatory_label_ace { uint32_t sid_start; } nt_system_mandatory_label_ace; +/* helper structures */ +typedef struct _nt_sd_common_data { + nt_sd sd; + nt_sid_any owner; + nt_sid_any group; + nt_acl dacl; + nt_access_allowed_ace system_ace; + nt_sid_os system_sid; + nt_access_allowed_ace owner_ace; + nt_sid_any owner_sid; + nt_access_allowed_ace group_ace; + nt_sid_any group_sid; + nt_access_allowed_ace other_ace; + nt_sid_any other_sid; +} nt_sd_common_data; + +typedef struct _nt_sd_common_meta { + nt_sd * sd; + nt_sid * owner; + nt_sid * group; + nt_acl * dacl; + nt_access_allowed_ace * system_ace; + nt_sid * system_sid; + nt_access_allowed_ace * owner_ace; + nt_sid * owner_sid; + nt_access_allowed_ace * group_ace; + nt_sid * group_sid; + nt_access_allowed_ace * other_ace; + nt_sid * other_sid; +} nt_sd_common_meta; + +typedef struct _nt_sd_common_buffer { + nt_sd sd; + nt_sid_any owner; + nt_sid_any group; + nt_acl dacl; + uint32_t buffer[64]; +} nt_sd_common_buffer; + #endif -- cgit v1.2.3