summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-03-19 16:39:11 +0000
committermidipix <writeonce@midipix.org>2018-03-20 23:27:58 -0400
commit6e02dba98205b62015ad6f579e33b4048626fe09 (patch)
tree1588d9a757249ffa82e510579804988450ce9ae9 /include
parent99ec4d21eec1ff5c8fb2d4b09402413fb084b8fa (diff)
downloadntapi-6e02dba98205b62015ad6f579e33b4048626fe09.tar.bz2
ntapi-6e02dba98205b62015ad6f579e33b4048626fe09.tar.xz
sd & acl helper structures: added nt_sd_common_{data|meta|buffer}.
Diffstat (limited to 'include')
-rw-r--r--include/ntapi/nt_acl.h39
1 files changed, 39 insertions, 0 deletions
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