Abstract base class for deciding how the handler should ptrace a client.
More...
#include "handler/linux/exception_handler_server.h"
Public Types | |
| enum class | Strategy |
| The possible return values for ChooseStrategy(). More... | |
Public Member Functions | |
| virtual Strategy | ChooseStrategy (int sock, bool multiple_clients, const ucred &client_credentials)=0 |
Chooses an appropriate ptrace strategy. | |
Abstract base class for deciding how the handler should ptrace a client.
|
strong |
The possible return values for ChooseStrategy().
| Enumerator | |
|---|---|
| kError | An error occurred, with a message logged. |
| kNoPtrace | Ptrace cannot be used. |
| kDirectPtrace | The handler should |
| kUseBroker | The client has |
|
pure virtual |
Chooses an appropriate ptrace strategy.
| [in] | sock | A socket conncted to a ExceptionHandlerClient. |
| [in] | multiple_clients | true if the socket is connected to multiple clients. The broker is not supported in this configuration. |
| [in] | client_credentials | The credentials for the connected client. |