Skip to main content

Name

post_drop_privileges

Synopsis

#include "hooks/core/post_drop_privileges.h"

| int **post_drop_privileges** ( | closure); |   |

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

| int **has_core_post_drop_privileges_hook** ( | ); |   |

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

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

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

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

| int **call_core_post_drop_privileges_hook** ( | ); |   |

Description

Parameters:

closure

the implementation specific closure, this is not needed for the hook's caller.

Called after privileges are dropped and allows activities to be carried out directly after dropping priveleges. 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?