Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
55385abb33
!180 [sync] PR-177: backport patches from upstream
From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2024-12-23 01:23:50 +00:00
Qiumiao Zhang
75963a8e86 backport some patches from upstream
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit b01474022f935c55473f71b9f92f7f36fd8fd708)
2024-12-21 17:40:45 +08:00
openeuler-ci-bot
b022d071fb
!173 Fix memory leak in omazureeventhubs on accepted PN_DELIVERY event
From: @jamesblunt 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-08-21 07:40:35 +00:00
Zhang Yaqi
1ed1bae4d9 Fix memory leak in omazureeventhubs on accepted PN_DELIVERY event 2024-08-16 11:19:03 +08:00
openeuler-ci-bot
076b0312c1
!171 [sync] PR-169: tls bugfix: parameter 'StreamDriver.CRLFile' not known
From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2024-06-25 06:50:34 +00:00
Qiumiao Zhang
5cb8c53963 tls bugfix: parameter 'StreamDriver.CRLFile' not known
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
(cherry picked from commit f3f0adb249b766ab42f1501a08ed8750f3409585)
2024-06-25 12:01:56 +08:00
openeuler-ci-bot
936d341aa8
!165 [sync] PR-163: 回合上游补丁,数量:3个
From: @openeuler-sync-bot 
Reviewed-by: @yanan-rock 
Signed-off-by: @yanan-rock
2024-06-19 03:05:44 +00:00
zhangxingrong
d01fd98527 add some patchs from upstream
Deleting duplicate patches

(cherry picked from commit 5291e715d3e5bf346b33fed6f5ef1bc73460e3a5)
2024-06-18 21:24:34 +08:00
openeuler-ci-bot
cc5406c2f4
!160 bugfix fix printing of time_t values
From: @jamesblunt 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
2024-05-22 09:57:36 +00:00
zhangyaqi
046bcab8c2 fix printing of time_t values 2024-05-22 10:14:24 +08:00
13 changed files with 577 additions and 1 deletions

View File

@ -0,0 +1,44 @@
From 7d8519c92d55f073b4a6cc57e27ea34b5c4dc5d1 Mon Sep 17 00:00:00 2001
From: Flos Lonicerae <lonicerae@gmail.com>
Date: Fri, 19 Apr 2024 16:55:55 +0800
Subject: [PATCH] Do not free the uninitialized cstring.
* Better deal with corrupted queue messages
---
runtime/obj.c | 6 +++++-
runtime/stringbuf.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/runtime/obj.c b/runtime/obj.c
index c78b1d27a..03a56f7a3 100644
--- a/runtime/obj.c
+++ b/runtime/obj.c
@@ -518,7 +518,11 @@ static rsRetVal objDeserializeStr(cstr_t **ppCStr, int iLen, strm_t *pStrm)
cstrFinalize(pCStr);
/* check terminator */
- if(c != ':') ABORT_FINALIZE(RS_RET_INVALID_DELIMITER);
+ if(c != ':') {
+ /* Initialized to NULL */
+ *ppCStr = NULL;
+ ABORT_FINALIZE(RS_RET_INVALID_DELIMITER);
+ }
*ppCStr = pCStr;
diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c
index ea39b7c82..9c639a04e 100644
--- a/runtime/stringbuf.c
+++ b/runtime/stringbuf.c
@@ -219,7 +219,7 @@ finalize_it:
void rsCStrDestruct(cstr_t **const ppThis)
{
- free((*ppThis)->pBuf);
+ if ((*ppThis)->pBuf) free((*ppThis)->pBuf);
RSFREEOBJ(*ppThis);
*ppThis = NULL;
}
--
2.33.0

View File

@ -0,0 +1,46 @@
From 2feac271cadb4cc915aa279ec1986fc2d7b8c4b0 Mon Sep 17 00:00:00 2001
From: Cropi <alakatos@redhat.com>
Date: Tue, 26 Nov 2024 13:13:28 +0100
Subject: [PATCH] Fix legacy $ActionQueueDiscardMark parameter
If the $ActionQueueSize legacy parameter was configured
with a much value higher than the default, the queueDiscardMark
option was not automatically adjusted to represent 98% of
the actual queue size. This caused a misalignment issue,
which does not occur when using the RainerScript syntax.
Fixes #5399
---
action.c | 2 +-
runtime/rsconf.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/action.c b/action.c
index 5e94ed207..e377c7420 100644
--- a/action.c
+++ b/action.c
@@ -291,7 +291,7 @@ actionResetQueueParams(void)
cs.iActionQueueDeqBatchSize = 16; /* default batch size */
cs.iActionQHighWtrMark = -1; /* high water mark for disk-assisted queues */
cs.iActionQLowWtrMark = -1; /* low water mark for disk-assisted queues */
- cs.iActionQDiscardMark = 980; /* begin to discard messages */
+ cs.iActionQDiscardMark = -1; /* begin to discard messages */
cs.iActionQDiscardSeverity = 8; /* discard warning and above */
cs.iActionQueueNumWorkers = 1; /* number of worker threads for the mm queue above */
cs.iActionQueMaxFileSize = 1024*1024;
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index 68a4de4e0..71b31be3c 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -246,7 +246,7 @@ static void cnfSetDefaults(rsconf_t *pThis)
pThis->globals.mainQ.iMainMsgQueueSize = 100000;
pThis->globals.mainQ.iMainMsgQHighWtrMark = 80000;
pThis->globals.mainQ.iMainMsgQLowWtrMark = 20000;
- pThis->globals.mainQ.iMainMsgQDiscardMark = 98000;
+ pThis->globals.mainQ.iMainMsgQDiscardMark = -1;
pThis->globals.mainQ.iMainMsgQDiscardSeverity = 8;
pThis->globals.mainQ.iMainMsgQueueNumWorkers = 2;
pThis->globals.mainQ.MainMsgQueType = QUEUETYPE_FIXED_ARRAY;
--
2.33.0

View File

@ -0,0 +1,34 @@
From 8f203bb219e08ec2e685d190ea21d5a7c7cecf44 Mon Sep 17 00:00:00 2001
From: Flos Lonicerae <lonicerae@gmail.com>
Date: Wed, 8 May 2024 16:45:39 +0800
Subject: [PATCH] Fix passing the value to EscapeChar.
---
runtime/cfsysline.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtime/cfsysline.c b/runtime/cfsysline.c
index 34b1cd7a3..06fdb4bb0 100644
--- a/runtime/cfsysline.c
+++ b/runtime/cfsysline.c
@@ -59,7 +59,7 @@ linkedList_t llCmdList; /* this is NOT a pointer - no typo here ;) */
* HINT: check if char is ' and, if so, use 'c' where c may also be things
* like \t etc.
*/
-static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *pVal)
+static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uchar*), void *pVal)
{
DEFiRet;
@@ -78,7 +78,7 @@ static rsRetVal doGetChar(uchar **pp, rsRetVal (*pSetHdlr)(void*, uid_t), void *
*((uchar*)pVal) = **pp;
} else {
/* we set value via a set function */
- CHKiRet(pSetHdlr(pVal, **pp));
+ CHKiRet(pSetHdlr(pVal, *pp));
}
++(*pp); /* eat processed char */
}
--
2.33.0

View File

@ -0,0 +1,29 @@
From d38e4b7bfc5bd0137914859837dcc04076b9e1ea Mon Sep 17 00:00:00 2001
From: Wang Haitao <45086632+apple-ouyang@users.noreply.github.com>
Date: Fri, 20 Sep 2024 17:50:37 +0800
Subject: [PATCH] Fix runConf NULL pointer refence
`systemd restart rsyslog` in the early start of OS will let rsyslog segmentation fault.
This cmd will send sigTerm to rsylogd, and rsyslogd will handle the signal in rsyslogdDoDie.
If the rsyslogd havn't parse the conf, the runConf will be NULL
So check the pointer before reference it.
---
tools/rsyslogd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/rsyslogd.c b/tools/rsyslogd.c
index ed81df3a7..1340b1e62 100644
--- a/tools/rsyslogd.c
+++ b/tools/rsyslogd.c
@@ -2013,7 +2013,7 @@ rsyslogdDoDie(int sig)
abort();
}
bFinished = sig;
- if(runConf->globals.debugOnShutdown) {
+ if(runConf && runConf->globals.debugOnShutdown) {
/* kind of hackish - set to 0, so that debug_swith will enable
* and AND emit the "start debug log" message.
*/
--
2.33.0

View File

@ -0,0 +1,25 @@
From 24f7a56dd95851f0417abc256281f641aaace2cc Mon Sep 17 00:00:00 2001
From: Flos Lonicerae <lonicerae@gmail.com>
Date: Wed, 1 May 2024 18:00:46 +0800
Subject: [PATCH] Keep original free pattern.
---
runtime/stringbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/stringbuf.c b/runtime/stringbuf.c
index 9c639a04e..ea39b7c82 100644
--- a/runtime/stringbuf.c
+++ b/runtime/stringbuf.c
@@ -219,7 +219,7 @@ finalize_it:
void rsCStrDestruct(cstr_t **const ppThis)
{
- if ((*ppThis)->pBuf) free((*ppThis)->pBuf);
+ free((*ppThis)->pBuf);
RSFREEOBJ(*ppThis);
*ppThis = NULL;
}
--
2.33.0

View File

@ -0,0 +1,37 @@
From 0b82b8e09d463312768c2da13af0410149d0e643 Mon Sep 17 00:00:00 2001
From: ydu <ydu@ubiqube.com>
Date: Fri, 14 Jun 2024 16:59:38 +0200
Subject: [PATCH] Fix memory leak in omazureeventhubs on accepted PN_DELIVERY
event
- Fix units in a comment of omazureeventhubs
Reference:https://github.com/rsyslog/rsyslog/commit/0b82b8e09d463312768c2da13af0410149d0e643
Conflict:NA
---
plugins/omazureeventhubs/omazureeventhubs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/omazureeventhubs/omazureeventhubs.c b/plugins/omazureeventhubs/omazureeventhubs.c
index a2bd8b3..c723b6a 100644
--- a/plugins/omazureeventhubs/omazureeventhubs.c
+++ b/plugins/omazureeventhubs/omazureeventhubs.c
@@ -727,7 +727,7 @@ CODESTARTcommitTransaction
}
bDone = 1;
- // Wait 100 microseconds
+ // Wait 100 milliseconds
srSleep(0, 100000);
// Verify if messages have been submitted successfully
@@ -1283,6 +1283,7 @@ handleProton(wrkrInstanceData_t *const pWrkrData, pn_event_t *event) {
iQueueNum,
pWrkrData->nMaxProtonMsgs,
pWrkrData, pData->azurehost, pData->azureport, pData->container);
+ pn_delivery_settle(pDeliveryStatus); // free the delivered message
pMsgEntry->status = PROTON_ACCEPTED;
// Increment Stats Counter
--
2.27.0

View File

@ -0,0 +1,60 @@
From dbe5cba4f725dea49dc70740efe550b141f2cc4c Mon Sep 17 00:00:00 2001
From: Michael Biebl <biebl@debian.org>
Date: Wed, 10 Apr 2024 19:28:52 +0200
Subject: [PATCH] fix printing of time_t values
time_t can be 64bit, even on 32bit architectures. So always use 64bit
integers (PRId64) when printing time_t values and upcast as necessary.
See https://wiki.debian.org/ReleaseGoals/64bit-time
Fixes: #5355
---
contrib/mmkubernetes/mmkubernetes.c | 5 +++--
plugins/imfile/imfile.c | 11 +++++++----
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/contrib/mmkubernetes/mmkubernetes.c b/contrib/mmkubernetes/mmkubernetes.c
index 525962e..f6d475e 100644
--- a/contrib/mmkubernetes/mmkubernetes.c
+++ b/contrib/mmkubernetes/mmkubernetes.c
@@ -1722,8 +1722,9 @@ queryKB(wrkrInstanceData_t *pWrkrData, char *url, time_t now, struct json_object
now -= pWrkrData->pData->cache->lastBusyTime;
if (now < pWrkrData->pData->busyRetryInterval) {
LogMsg(0, RS_RET_RETRY, LOG_DEBUG,
- "mmkubernetes: Waited [%ld] of [%d] seconds for the requested url [%s]\n",
- now, pWrkrData->pData->busyRetryInterval, url);
+ "mmkubernetes: Waited [%"PRId64"] of [%d] seconds for "
+ "the requested url [%s]\n",
+ (int64_t) now, pWrkrData->pData->busyRetryInterval, url);
ABORT_FINALIZE(RS_RET_RETRY);
} else {
LogMsg(0, RS_RET_OK, LOG_DEBUG,
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index 3b0bb10..6c5764f 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -857,13 +857,16 @@ detect_updates(fs_edge_t *const edge)
sbool is_file = act->edge->is_file;
if (!is_file || act->time_to_delete + FILE_DELETE_DELAY < ttNow) {
DBGPRINTF("detect_updates obj gone away, unlinking: "
- "'%s', ttDelete: %lds, ttNow:%ld isFile: %d\n",
- act->name, ttNow - (act->time_to_delete + FILE_DELETE_DELAY), ttNow, is_file);
+ "'%s', ttDelete: %"PRId64"s, ttNow:%"PRId64" isFile: %d\n",
+ act->name, (int64_t) ttNow - (act->time_to_delete + FILE_DELETE_DELAY),
+ (int64_t) ttNow, is_file);
act_obj_unlink(act);
restart = 1;
} else {
- DBGPRINTF("detect_updates obj gone away, keep '%s' open: %ld/%ld/%lds!\n",
- act->name, act->time_to_delete, ttNow, ttNow - act->time_to_delete);
+ DBGPRINTF("detect_updates obj gone away, keep '%s' "
+ "open: %"PRId64"/%"PRId64"/%"PRId64"s!\n",
+ act->name, (int64_t) act->time_to_delete, (int64_t) ttNow,
+ (int64_t) ttNow - act->time_to_delete);
pollFile(act);
}
}
--
2.27.0

View File

@ -0,0 +1,54 @@
From 9ac56b28614f1bdbe147181471a6688f4f418e9f Mon Sep 17 00:00:00 2001
From: Rainer Gerhards <rgerhards@adiscon.com>
Date: Sun, 15 Sep 2024 15:24:28 +0200
Subject: [PATCH] network subsystem: improve connection failure error message
If we try to connect via TCP and the connections fails, we now
tell inside the error message how long the connection attempt
took. This is useful to find out if targets connect very
slowly.
---
runtime/nsd_ptcp.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index e1c1de957..8549d5aaa 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -37,6 +37,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <netinet/tcp.h>
+#include <sys/time.h>
#include "rsyslog.h"
#include "syslogd-types.h"
@@ -73,6 +74,7 @@ DEFobjCurrIf(prop)
static void
sockClose(int *pSock)
{
+ fprintf(stderr, "nsd_ptcp: closing socket %d\n", *pSock);
if(*pSock >= 0) {
close(*pSock);
*pSock = -1;
@@ -956,9 +958,15 @@ Connect(nsd_t *pNsd, int family, uchar *port, uchar *host, char *device)
}
}
+ struct timeval start, end;
+ long seconds, useconds;
+ gettimeofday(&start, NULL);
if(connect(pThis->sock, res->ai_addr, res->ai_addrlen) != 0) {
- LogError(errno, RS_RET_IO_ERROR, "cannot connect to %s:%s",
- host, port);
+ gettimeofday(&end, NULL);
+ seconds = end.tv_sec - start.tv_sec;
+ useconds = end.tv_usec - start.tv_usec;
+ LogError(errno, RS_RET_IO_ERROR, "cannot connect to %s:%s (took %ld.%ld seconds)",
+ host, port, seconds, useconds / 10000);
ABORT_FINALIZE(RS_RET_IO_ERROR);
}
--
2.33.0

View File

@ -0,0 +1,29 @@
From 9bc4c49d0705db2656a56fe14a5a2cfe3f6c9ac2 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards <rgerhards@adiscon.com>
Date: Tue, 12 Nov 2024 10:54:00 +0100
Subject: [PATCH] nsd_ptcp regression fix: remove debugging messages emited to
stderr
fix regression introduced by 9ac56b286. This spits out a debug message
to stderr. That message is removed by this patch here.
closes https://github.com/rsyslog/rsyslog/issues/5485
---
runtime/nsd_ptcp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index 8549d5aaa..240482b72 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -74,7 +74,6 @@ DEFobjCurrIf(prop)
static void
sockClose(int *pSock)
{
- fprintf(stderr, "nsd_ptcp: closing socket %d\n", *pSock);
if(*pSock >= 0) {
close(*pSock);
*pSock = -1;
--
2.33.0

View File

@ -0,0 +1,79 @@
From 25224fb536488ae63e6addd2c9005bc2b8dc126a Mon Sep 17 00:00:00 2001
From: Rainer Gerhards <rgerhards@adiscon.com>
Date: Wed, 21 Feb 2024 09:31:00 +0100
Subject: [PATCH] omfile: do not carry out actual action when writing to
/dev/null
In some use cases omfile is configured to write to /dev/null. This seems
primarily be done because of statistics gathering but maybe some other
scenarios. We now add conditional logic to not do any actual omfile
action when the target file is /dev/null.
Note: this check only works on static file names. When /dev/null is
evaluated as part of dynafile, it will be handled just in the regular
case like before this patch.
---
tools/omfile.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/tools/omfile.c b/tools/omfile.c
index 1702a30399..cf464cd1c1 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -17,7 +17,7 @@
* pipes. These have been moved to ompipe, to reduced the entanglement
* between the two different functionalities. -- rgerhards
*
- * Copyright 2007-2023 Adiscon GmbH.
+ * Copyright 2007-2024 Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -139,6 +139,7 @@ typedef struct _instanceData {
strm_t *pStrm; /* our output stream */
short nInactive; /* number of minutes not writen (STATIC files only) */
char bDynamicName; /* 0 - static name, 1 - dynamic name (with properties) */
+ int isDevNull; /* do we "write" to /dev/null? - if so, do nothing */
int fCreateMode; /* file creation mode for open() */
int fDirCreateMode; /* creation mode for mkdir() */
int bCreateDirs; /* auto-create directories? */
@@ -1081,6 +1082,11 @@ BEGINcommitTransaction
instanceData *__restrict__ const pData = pWrkrData->pData;
unsigned i;
CODESTARTcommitTransaction
+
+ if(pData->isDevNull) {
+ goto terminate;
+ }
+
pthread_mutex_lock(&pData->mutWrite);
for(i = 0 ; i < nParams ; ++i) {
@@ -1105,6 +1111,8 @@ CODESTARTcommitTransaction
iRet = (pData->bDynamicName && runModConf->bDynafileDoNotSuspend) ?
RS_RET_OK : RS_RET_SUSPENDED;
}
+
+terminate:
ENDcommitTransaction
@@ -1135,6 +1143,7 @@ setInstParamDefaults(instanceData *__restrict__ const pData)
pData->useCryprov = 0;
pData->iCloseTimeout = -1;
pData->iSizeLimit = 0;
+ pData->isDevNull = 0;
pData->pszSizeLimitCmd = NULL;
}
@@ -1378,6 +1387,10 @@ CODESTARTnewActInst
ABORT_FINALIZE(RS_RET_MISSING_CNFPARAMS);
}
+ if(!strcmp((const char*) pData->fname, "/dev/null")) {
+ pData->isDevNull = 1;
+ }
+
if(pData->sigprovName != NULL) {
initSigprov(pData, lst);
}

View File

@ -0,0 +1,47 @@
From 3ccbc99a1bf6b2da543c9db9ac03aca2019fc50f Mon Sep 17 00:00:00 2001
From: Cropi <alakatos@redhat.com>
Date: Wed, 25 Sep 2024 10:32:49 +0200
Subject: [PATCH] rainerscript: do not try to call a function if it does not
exist
---
grammar/rainerscript.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c
index 69d0b38ba..db7edbb1e 100644
--- a/grammar/rainerscript.c
+++ b/grammar/rainerscript.c
@@ -2901,11 +2901,6 @@ doFuncCall(struct cnffunc *__restrict__ const func, struct svar *__restrict__ co
free(fname);
}
if(func->fPtr == NULL) {
- char *fname = es_str2cstr(func->fname, NULL);
- LogError(0, RS_RET_INTERNAL_ERROR,
- "rainerscript: internal error: NULL pointer for function named '%s'\n",
- fname);
- free(fname);
ret->datatype = 'N';
ret->d.n = 0;
} else {
@@ -3802,7 +3797,7 @@ cnffuncDestruct(struct cnffunc *func)
char *cstr = es_str2cstr(func->fname, NULL);
struct scriptFunct *foundFunc = searchModList(cstr);
free(cstr);
- if(foundFunc->destruct != NULL) {
+ if(foundFunc && foundFunc->destruct != NULL) {
foundFunc->destruct(func);
}
@@ -5300,7 +5295,7 @@ cnffuncNew(es_str_t *fname, struct cnffparamlst* paramlst)
}
/* some functions require special initialization */
struct scriptFunct *foundFunc = searchModList(cstr);
- if(foundFunc->initFunc != NULL) {
+ if(foundFunc && foundFunc->initFunc != NULL) {
foundFunc->initFunc(func);
}
free(cstr);
--
2.33.0

View File

@ -7,7 +7,7 @@
Name: rsyslog
Version: 8.2312.0
Release: 2
Release: 7
Summary: The rocket-fast system for log processing
License: (GPLv3+ and ASL 2.0)
URL: http://www.rsyslog.com/
@ -30,6 +30,20 @@ Patch9004: print-main-queue-info-to-journal-when-queue-full.patch
Patch9005: print-main-queue-info-to-journal-when-receive-USR1-signal.patch
Patch6000: backport-outchannel-eleminate-type-cast-for-compatibility-rea.patch
Patch6001: backport-fix-printing-of-time_t-values.patch
Patch6002: backport-omfile-do-not-carry-out-actual-action-when-writing-to-dev-null.patch
Patch6003: backport-fix-memory-leak-in-omazureeventhubs-on-accepted-PN_D.patch
Patch9006: tls-bugfix-parameter-StreamDriver_CRLFile-not-known.patch
Patch6004: backport-Fix-passing-the-value-to-EscapeChar.patch
Patch6005: backport-Do-not-free-the-uninitialized-cstring.patch
Patch6006: backport-Keep-original-free-pattern.patch
Patch6007: backport-network-subsystem-improve-connection-failure-error-m.patch
Patch6008: backport-Fix-runConf-NULL-pointer-refence.patch
Patch6009: backport-rainerscript-do-not-try-to-call-a-function-if-it-doe.patch
Patch6010: backport-nsd_ptcp-regression-fix-remove-debugging-messages-em.patch
Patch6011: backport-Fix-legacy-ActionQueueDiscardMark-parameter.patch
BuildRequires: gcc autoconf automake bison dos2unix flex pkgconfig python3-docutils libtool
BuildRequires: libgcrypt-devel libuuid-devel zlib-devel krb5-devel libnet-devel gnutls-devel
@ -506,6 +520,41 @@ done
%{_mandir}/man1/rscryutil.1.gz
%changelog
* Sat Dec 21 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 8.2312.0-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix passing the value to EscapeChar
Do not free the uninitialized cstring
Keep original free pattern
network subsystem: improve connection failure error message
Fix runConf NULL pointer refence
rainerscript: do not try to call a function if it does not exist
nsd_ptcp regression fix: remove debugging messages emited to stderr
Fix legacy $ActionQueueDiscardMark parameter
* Fri Aug 16 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 8.2312.0-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix memory leak in omazureeventhubs on accepted PN_DELIVERY event
* Fri Jun 21 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 8.2312.0-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:tls bugfix: parameter 'StreamDriver.CRLFile' not known
* Mon Jun 17 2024 zhangxingrong <zhangxingrong@uniontech.com> - 8.2312.0-4
- add patch from upstream
- omfile-do-not-carry-out-actual-action-when-writing-to-dev-null
* Wed May 22 2024 zhangyaqi <zhangyaqi@kylinos.cn> - 8.2312.0-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix printing of time_t values
* Wed May 8 2024 zhangqiumiao <zhangqiumiao1@huawei.com> - 8.2312.0-2
- Type:NA
- ID:NA

View File

@ -0,0 +1,43 @@
From abc4f0a260c5f3ed84e59387633feb07013b0a9f Mon Sep 17 00:00:00 2001
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
Date: Fri, 21 Jun 2024 01:36:51 +0000
Subject: [PATCH] tls bugfix: parameter 'StreamDriver.CRLFile' not known
imtcp: fix parameter 'StreamDriver.CRLFile' cannot be recognized in input()
omfwd: fix parameter 'StreamDriver.CRLFile' cannot be recognized in action()
Fixes: 844d1795a2b1 ("TLS CRL Support Issue 5081")
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
---
plugins/imtcp/imtcp.c | 1 +
tools/omfwd.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c
index 0c31c93d2..51c4e1e00 100644
--- a/plugins/imtcp/imtcp.c
+++ b/plugins/imtcp/imtcp.c
@@ -257,6 +257,7 @@ static struct cnfparamdescr inppdescr[] = {
{ "streamdriver.PrioritizeSAN", eCmdHdlrBinary, 0 },
{ "streamdriver.TlsVerifyDepth", eCmdHdlrPositiveInt, 0 },
{ "streamdriver.cafile", eCmdHdlrString, 0 },
+ { "streamdriver.crlfile", eCmdHdlrString, 0 },
{ "streamdriver.keyfile", eCmdHdlrString, 0 },
{ "streamdriver.certfile", eCmdHdlrString, 0 },
{ "permittedpeer", eCmdHdlrArray, 0 },
diff --git a/tools/omfwd.c b/tools/omfwd.c
index d1eeeff2a..2acd9e586 100644
--- a/tools/omfwd.c
+++ b/tools/omfwd.c
@@ -213,6 +213,7 @@ static struct cnfparamdescr actpdescr[] = {
{ "streamdriver.PrioritizeSAN", eCmdHdlrBinary, 0 },
{ "streamdriver.TlsVerifyDepth", eCmdHdlrPositiveInt, 0 },
{ "streamdriver.cafile", eCmdHdlrString, 0 },
+ { "streamdriver.crlfile", eCmdHdlrString, 0 },
{ "streamdriver.keyfile", eCmdHdlrString, 0 },
{ "streamdriver.certfile", eCmdHdlrString, 0 },
{ "resendlastmsgonreconnect", eCmdHdlrBinary, 0 },
--
2.33.0