summaryrefslogtreecommitdiffhomepage
path: root/src/object
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-12-24 12:08:35 +0000
committermidipix <writeonce@midipix.org>2019-12-24 12:08:35 +0000
commite1cbd38d47f73ad4e386a593278de04e03451c30 (patch)
tree4f98f25d7beeedca29c6a1ae80b17434e43acd9c /src/object
parent2c0c64c419d9d64f6e7101284e514aea932dad60 (diff)
downloadntapi-e1cbd38d47f73ad4e386a593278de04e03451c30.tar.bz2
ntapi-e1cbd38d47f73ad4e386a593278de04e03451c30.tar.xz
__ipc_sd_init(): add missing rights (authenticated_users) and acl's.
Diffstat (limited to 'src/object')
-rw-r--r--src/object/ntapi_tt_keyed_object_directory.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/object/ntapi_tt_keyed_object_directory.c b/src/object/ntapi_tt_keyed_object_directory.c
index 988ed00..6e7352e 100644
--- a/src/object/ntapi_tt_keyed_object_directory.c
+++ b/src/object/ntapi_tt_keyed_object_directory.c
@@ -93,7 +93,7 @@ static void __ipc_sd_init(nt_sd_common_buffer * sd, int fdir)
} else {
mask_system = NT_SYMBOLIC_LINK_ALL_ACCESS;
mask_owner = NT_SYMBOLIC_LINK_ALL_ACCESS;
- mask_other = NT_SYMBOLIC_LINK_QUERY;
+ mask_other = NT_SYMBOLIC_LINK_ALL_ACCESS;
}
/* sd header */
@@ -115,6 +115,8 @@ static void __ipc_sd_init(nt_sd_common_buffer * sd, int fdir)
ace = (nt_access_allowed_ace *)&sd->buffer;
ace = __ipc_ace_init(ace,mask_system,&(nt_sid){1,1,{{0,0,0,0,0,5}},{18}});
ace = __ipc_ace_init(ace,mask_other,&(nt_sid){1,1,{{0,0,0,0,0,5}},{11}});
+ ace = __ipc_ace_init(ace,mask_owner,(nt_sid *)&(nt_sid_os){1,2,{{0,0,0,0,0,5}},{32,544}});
+ ace = __ipc_ace_init(ace,mask_owner,&(nt_sid){1,1,{{0,0,0,0,0,3}},{4}});
ace = __ipc_ace_init(ace,mask_owner,(nt_sid *)&sd->owner);
sd->dacl.acl_revision = 0x02;