From 41ce6f4707be1a49abf52b38f96436a0c96ec873 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 6 Aug 2017 18:48:09 -0400 Subject: primary token: enable symlink creation capabilities by default. --- src/internal/ntapi.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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); -- cgit v1.2.3