mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-13 19:36:29 +00:00
Add a parameter to CrashGenerationServer to let the callers set the
security attributes on the pipe. This is useful when the process hosting the crash server wants to let processes from other users to connect to it and generate dumps for them. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@258 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -91,6 +91,7 @@ static bool IsClientRequestValid(const ProtocolMessage& msg) {
|
||||
|
||||
CrashGenerationServer::CrashGenerationServer(
|
||||
const std::wstring& pipe_name,
|
||||
SECURITY_ATTRIBUTES* pipe_sec_attrs,
|
||||
OnClientConnectedCallback connect_callback,
|
||||
void* connect_context,
|
||||
OnClientDumpRequestCallback dump_callback,
|
||||
@@ -100,6 +101,7 @@ CrashGenerationServer::CrashGenerationServer(
|
||||
bool generate_dumps,
|
||||
const std::wstring* dump_path)
|
||||
: pipe_name_(pipe_name),
|
||||
pipe_sec_attrs_(pipe_sec_attrs),
|
||||
pipe_(NULL),
|
||||
pipe_wait_handle_(NULL),
|
||||
server_alive_handle_(NULL),
|
||||
@@ -217,7 +219,7 @@ bool CrashGenerationServer::Start() {
|
||||
kOutBufferSize,
|
||||
kInBufferSize,
|
||||
0,
|
||||
NULL);
|
||||
pipe_sec_attrs_);
|
||||
if (!pipe_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user