chiark / gitweb /
secnet: provide will_droppriv
[secnet.git] / secnet.h
index b2f6927af03ff29fd4d0c35482f84e245db25031..7fbe157cfd1e231d4c0e00c16aa2ffc130c9f58b 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -274,6 +274,11 @@ extern void enter_phase(uint32_t new_phase);
 extern bool_t require_root_privileges;
 extern cstring_t require_root_privileges_explanation;
 
+/* Some modules may want to know whether secnet is going to drop
+   privilege, so that they know whether to do privsep.  Call only
+   in phases SETUP and later. */
+bool_t will_droppriv(void);
+
 /***** END of program lifetime support *****/
 
 /***** MODULE support *****/