static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status )
{
+ int ret = -1;
+
+ /*
+ * Disabled due to security concerns and unknown use in the
+ * field -- vl@samba.org
+ */
+#if 0
char *command = NULL;
- int ret, fd;
+ int fd;
if (asprintf(&command, "%s/%s/%s stop",
get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
status->state = (ret == 0 ) ? SVCCTL_STOPPED : SVCCTL_RUNNING;
status->controls_accepted = SVCCTL_ACCEPT_STOP |
SVCCTL_ACCEPT_SHUTDOWN;
-
+#endif
return ( ret == 0 ) ? WERR_OK : WERR_ACCESS_DENIED;
}
static WERROR rcinit_start( const char *service )
{
+ int ret = -1;
+ /*
+ * Disabled due to security concerns and unknown use in the
+ * field -- vl@samba.org
+ */
+#if 0
char *command = NULL;
- int ret, fd;
+ int fd;
if (asprintf(&command, "%s/%s/%s start",
get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
close(fd);
SAFE_FREE(command);
-
+#endif
return ( ret == 0 ) ? WERR_OK : WERR_ACCESS_DENIED;
}
static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status )
{
+ /*
+ * Disabled due to security concerns and unknown use in the
+ * field -- vl@samba.org
+ */
+#if 0
char *command = NULL;
int ret, fd;
SVCCTL_ACCEPT_SHUTDOWN;
return WERR_OK;
+#else
+ return WERR_ACCESS_DENIED;
+#endif
}
/*********************************************************************