From 64216d3053822463eb099a150df40fb99ee49b6f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 05 2022 13:42:25 +0000 Subject: import rsyslog-8.24.0-57.el7_9.2 --- diff --git a/SOURCES/rsyslog-8.24.0-rhbz2062505-ompipe-hup-signal-guard.patch b/SOURCES/rsyslog-8.24.0-rhbz2062505-ompipe-hup-signal-guard.patch new file mode 100644 index 0000000..11512e9 --- /dev/null +++ b/SOURCES/rsyslog-8.24.0-rhbz2062505-ompipe-hup-signal-guard.patch @@ -0,0 +1,17 @@ +diff --git a/tools/ompipe.c b/tools/ompipe.c +index 0b145b559e..a3c460ff54 100644 +--- a/tools/ompipe.c ++++ b/tools/ompipe.c +@@ -412,10 +412,12 @@ ENDparseSelectorAct + + BEGINdoHUP + CODESTARTdoHUP ++ pthread_mutex_lock(&pData->mutWrite); + if(pData->fd != -1) { + close(pData->fd); + pData->fd = -1; + } ++ pthread_mutex_unlock(&pData->mutWrite); + ENDdoHUP + + diff --git a/SPECS/rsyslog.spec b/SPECS/rsyslog.spec index bc176f7..a211f64 100644 --- a/SPECS/rsyslog.spec +++ b/SPECS/rsyslog.spec @@ -14,7 +14,7 @@ Summary: Enhanced system logging and kernel message trapping daemon Name: rsyslog Version: 8.24.0 -Release: 57%{?dist}.1 +Release: 57%{?dist}.2 License: (GPLv3+ and ASL 2.0) Group: System Environment/Daemons URL: http://www.rsyslog.com/ @@ -133,6 +133,7 @@ Patch68: rsyslog-8.24.0-rhbz1778841-serialize-crash-race.patch Patch69: rsyslog-8.24.0-rhbz1858297-buffer-overflow.patch Patch70: rsyslog-8.24.0-rhbz1944717-large-group.patch +Patch71: rsyslog-8.24.0-rhbz2062505-ompipe-hup-signal-guard.patch %package crypto Summary: Encryption support @@ -458,6 +459,7 @@ mv build doc %patch69 -p1 -b .overflow_sel_poll %patch70 -p1 -b .large-group-fail +%patch71 -p1 -b .ompipe-hup-signal-guard autoreconf @@ -717,6 +719,11 @@ done %{_libdir}/rsyslog/mmkubernetes.so %changelog +* Fri Mar 18 2022 Attila Lakatos - 8.24.0-57.2 +RHEL 7.9.Z ERRATUM +- guard HUP signal processing in ompipe module + resolves:rhbz#2062505 + * Wed Mar 31 2021 Attila Lakatos - 8.24.0-57.1 RHEL 7.9.Z ERRATUM - added patch resolving theoretically "too large" groups