[exim-cvs] SECURITY: Always exit when LOG_PANIC_DIE is set

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] SECURITY: Always exit when LOG_PANIC_DIE is set
Gitweb: https://git.exim.org/exim.git/commitdiff/6f97d821f13060b234c3d272d7672558bb2365ae
Commit:     6f97d821f13060b234c3d272d7672558bb2365ae
Parent:     e4e3d18dad8b9b8560889f552e1060d0f83c7159
Author:     Qualys Security Advisory <qsa@???>
AuthorDate: Sun Feb 21 22:09:06 2021 -0800
Committer:  Heiko Schlittermann (HS12-RIPE) <hs@???>
CommitDate: Thu May 27 21:30:55 2021 +0200


    SECURITY: Always exit when LOG_PANIC_DIE is set


    (cherry picked from commit e20aa895b37f449d5c81c3e7b102fc534b5d23ba)
    (cherry picked from commit 3b8c0ceb7339329188e19efb907da950dbe691d1)
---
 doc/doc-txt/ChangeLog | 4 ++++
 src/src/log.c         | 1 +
 2 files changed, 5 insertions(+)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index bcace27..a5bce7e 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -306,6 +306,10 @@ QS/03 When reading the output from interpreted forward files we do not
       pass the pipe between the parent and the interpreting process to
       executed child processes (if any).


+QS/04 Always die if requested from internal logging, even is logging is
+      disabled.
+
+
 Exim version 4.94
 -----------------


diff --git a/src/src/log.c b/src/src/log.c
index 2cf5780..6e35ff9 100644
--- a/src/src/log.c
+++ b/src/src/log.c
@@ -903,6 +903,7 @@ if (!(flags & (LOG_MAIN|LOG_PANIC|LOG_REJECT)))
if (f.disable_logging)
{
DEBUG(D_any) debug_printf("log writing disabled\n");
+ if ((flags & LOG_PANIC_DIE) == LOG_PANIC_DIE) exim_exit(EXIT_FAILURE);
return;
}