diff src/lib/restrict-access.h @ 8798:c9381a0fdc5e HEAD

Improved logging for core dumping. With Linux use PR_SET_DUMPABLE for imap/pop3.
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Mar 2009 21:04:11 -0500
parents af998ae4254b
children c002187195bd
line wrap: on
line diff
--- a/src/lib/restrict-access.h	Mon Mar 02 20:23:31 2009 -0500
+++ b/src/lib/restrict-access.h	Mon Mar 02 21:04:11 2009 -0500
@@ -15,6 +15,10 @@
    environment settings and we have root uid or gid. */
 void restrict_access_by_env(bool disallow_root);
 
+/* Try to set up the process in a way that core dumps are still allowed
+   after calling restrict_access_by_env(). */
+void restrict_access_allow_coredumps(bool allow);
+
 /* If privileged_gid was set, these functions can be used to temporarily
    gain access to the group. */
 int restrict_access_use_priv_gid(void);