Patch permit-service-acl.patch for win32service Bug #70961
Patch version 2015-11-23 20:27 UTC
Return to Bug #70961 |
Download this patch
Patch Revisions:
Developer: bdagnin@incontrol.co.nz
Index: win32service.c
===================================================================
--- win32service.c (revision 337426)
+++ win32service.c (working copy)
@@ -472,7 +472,7 @@
RETURN_FALSE;
}
- hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS);
+ hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT);
if (hmgr) {
hsvc = OpenService(hmgr, service, SERVICE_START);
if (hsvc) {
@@ -503,7 +503,7 @@
RETURN_FALSE;
}
- hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS);
+ hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT);
if (hmgr) {
hsvc = OpenService(hmgr, service, access);
if (hsvc) {
|