Skip to main content

Name

pre_drop_privileges

Synopsis

#include "hooks/core/pre_drop_privileges.h"

| int **pre_drop_privileges** ( | closure); |   |

void * <var class="pdparam">closure</var>;

| int **has_core_pre_drop_privileges_hook** ( | ); |   |

| void **register_core_pre_drop_privileges_hook_first** ( | hook, |   | |   | closure); |   |

ec_hook_core_pre_drop_privileges_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| void **register_core_pre_drop_privileges_hook_last** ( | hook, |   | |   | closure); |   |

ec_hook_core_pre_drop_privileges_func_t <var class="pdparam">hook</var>; void *<var class="pdparam">closure</var>;

| int **call_core_pre_drop_privileges_hook** ( | ); |   |

Description

This hook offers you the last chance to carry out activities before dropping privileges. You should return 0 to indicate success; a non-zero return code indicates a critical error and will result in the Momentum instance shutting down.

Was this page helpful?