summaryrefslogtreecommitdiffstats
path: root/support/win32/ApacheMonitor.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2002-07-09 19:13:48 +0200
committerWilliam A. Rowe Jr <wrowe@apache.org>2002-07-09 19:13:48 +0200
commit6e58d2426e3fee43f628ef9d4ab9e2581a1e4369 (patch)
tree93b6c56cf8c70cd34e9f25deccc80cbfa2cf5279 /support/win32/ApacheMonitor.c
parentDocumentation for the NetWare CGIMapExtension directive for mapping (diff)
downloadapache2-6e58d2426e3fee43f628ef9d4ab9e2581a1e4369.tar.xz
apache2-6e58d2426e3fee43f628ef9d4ab9e2581a1e4369.zip
Fix access for non-Administrators (superusers and the like) to allow them
to start and stop services, even without full permission to create or remove installed services. PR: 10460 Submitted by: "Mladen Turk" <mturk@mappingsoft.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/win32/ApacheMonitor.c')
-rw-r--r--support/win32/ApacheMonitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c
index 52d86423b9..4fec6ff478 100644
--- a/support/win32/ApacheMonitor.c
+++ b/support/win32/ApacheMonitor.c
@@ -780,13 +780,13 @@ BOOL ApacheManageService(LPCSTR szServiceName, LPCSTR szImagePath,
else
{
schSCManager = OpenSCManager(szComputerName, NULL,
- SC_MANAGER_ALL_ACCESS);
+ GENERIC_EXECUTE);
if (!schSCManager) {
return FALSE;
}
schService = OpenService(schSCManager, szServiceName,
- SERVICE_ALL_ACCESS);
+ GENERIC_EXECUTE);
if (schService != NULL)
{
retValue = FALSE;
@@ -937,7 +937,7 @@ BOOL IsServiceRunning(LPCSTR szServiceName, LPCSTR szComputerName,
{
dwPid = 0;
schSCManager = OpenSCManager(szComputerName, NULL,
- SC_MANAGER_ALL_ACCESS);
+ GENERIC_READ);
if (!schSCManager) {
return FALSE;
}