summaryrefslogtreecommitdiff
path: root/source3/services/svc_winreg_glue.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-01-15 11:42:29 +0100
committerJeremy Allison <jra@samba.org>2018-01-16 02:43:03 +0100
commita63aafb05d4d975aa9898b8a2dcbbf5d4f41938d (patch)
tree6c885cdb0d3f68af9dd3f8347d94c6111accf833 /source3/services/svc_winreg_glue.h
parent6aa0cc2570f9c86e76086bebf16234988107384e (diff)
downloadsamba-a63aafb05d4d975aa9898b8a2dcbbf5d4f41938d.tar.gz
srcctl3: Improve debug messages
A customer's syslog was filled with _svcctl_OpenServiceW: Failed to get a valid security descriptor messages. This improves the messages to give info about which service failed with which error code. Also, it makes OpenServiceW fail with the same error message Windows fails with for unknown services. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jan 16 02:43:03 CET 2018 on sn-devel-144
Diffstat (limited to 'source3/services/svc_winreg_glue.h')
-rw-r--r--source3/services/svc_winreg_glue.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/services/svc_winreg_glue.h b/source3/services/svc_winreg_glue.h
index c9366b377d2..e013f8deeda 100644
--- a/source3/services/svc_winreg_glue.h
+++ b/source3/services/svc_winreg_glue.h
@@ -28,10 +28,11 @@ struct auth_session_info;
struct security_descriptor* svcctl_gen_service_sd(TALLOC_CTX *mem_ctx);
-struct security_descriptor *svcctl_get_secdesc(TALLOC_CTX *mem_ctx,
- struct messaging_context *msg_ctx,
- const struct auth_session_info *session_info,
- const char *name);
+WERROR svcctl_get_secdesc(struct messaging_context *msg_ctx,
+ const struct auth_session_info *session_info,
+ const char *name,
+ TALLOC_CTX *mem_ctx,
+ struct security_descriptor **result);
bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
const struct auth_session_info *session_info,