changeset 22825:2df6a22a5ad1

lib: Clarify restrict_access_allow_coredumps
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Thu, 08 Feb 2018 13:01:50 +0200
parents bd5cea4da2ce
children 44e84dd9b363
files src/lib/restrict-access.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/restrict-access.h	Wed Feb 07 16:17:13 2018 +0200
+++ b/src/lib/restrict-access.h	Thu Feb 08 13:01:50 2018 +0200
@@ -51,8 +51,10 @@
    otherwise NULL. */
 const char *restrict_access_get_current_chroot(void);
 
-/* Try to set up the process in a way that core dumps are still allowed
-   after calling restrict_access_by_env(). */
+/*
+   Checks if PR_SET_DUMPABLE environment variable is set, and if it is,
+   calls restrict_access_set_dumpable(allow). 
+*/
 void restrict_access_allow_coredumps(bool allow);
 
 /* If privileged_gid was set, these functions can be used to temporarily