summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-08-06 18:48:09 -0400
committermidipix <writeonce@midipix.org>2017-08-06 18:48:09 -0400
commit41ce6f4707be1a49abf52b38f96436a0c96ec873 (patch)
treebd9218815a7100897c9477f4f862e64b9b99f9ea /src
parentedb08567093daae164f6d3955884117dee74fe98 (diff)
downloadntapi-41ce6f4707be1a49abf52b38f96436a0c96ec873.tar.bz2
ntapi-41ce6f4707be1a49abf52b38f96436a0c96ec873.tar.xz
primary token: enable symlink creation capabilities by default.
Diffstat (limited to 'src')
-rw-r--r--src/internal/ntapi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/ntapi.c b/src/internal/ntapi.c
index 0940ebd..a5d6113 100644
--- a/src/internal/ntapi.c
+++ b/src/internal/ntapi.c
@@ -439,6 +439,10 @@ static int32_t __fastcall __ntapi_init_once(ntapi_vtbl ** pvtbl)
&internals->htoken)))
return status;
+ __ntapi->tt_enable_token_privilege(
+ internals->htoken,
+ NT_SE_CREATE_SYMBOLIC_LINK_PRIVILEGE);
+
/* done */
*pvtbl = &___ntapi_shadow;
at_locked_inc(&__ntapi_init_idx);