- Fix windows service to be created run with limited rights, as a

network service account, from Mario Turschmann.


git-svn-id: file:///svn/unbound/trunk@3734 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2016-05-31 11:41:49 +00:00
parent 688fa185b0
commit 0f197e85cc
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -232,7 +232,8 @@ wsvc_install(FILE* out, const char* rename)
NULL, /* no tag identifier */
NULL, /* no deps */
NULL, /* on LocalSystem */
NULL /* no password */
_T("NT AUTHORITY\\NetworkService"), /* network service account with restricted rights */
"" /* no password (must be an empty string) */
);
if(!sv) {
CloseServiceHandle(scm);