From: Aki Tuomi Date: Thu, 8 Feb 2018 11:01:50 +0000 (+0200) Subject: lib: Clarify restrict_access_allow_coredumps X-Git-Tag: 2.3.9~2339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9eeaf4a8bb9e0a87ea6fcb23ef714bb07527b3a8;p=thirdparty%2Fdovecot%2Fcore.git lib: Clarify restrict_access_allow_coredumps --- diff --git a/src/lib/restrict-access.h b/src/lib/restrict-access.h index a60b9a723f..5af0d725d2 100644 --- a/src/lib/restrict-access.h +++ b/src/lib/restrict-access.h @@ -51,8 +51,10 @@ void restrict_access_by_env(const char *home, bool disallow_root) ATTR_NULL(1); 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