public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rsyslog] rawhide: Rebase to 8.2610.0
@ 2026-11-16 12:30 Attila Lakatos
0 siblings, 0 replies; only message in thread
From: Attila Lakatos @ 2026-11-16 12:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rsyslog
Branch : rawhide
Commit : 5402ccb9dbf057d9bf8f81182032a4d64eaf99e0
Author : Attila Lakatos <atttila.lakatos@gmail.com>
Date : 2026-11-16T13:25:36+01:00
Stats : +110/-2 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rsyslog/c/5402ccb9dbf057d9bf8f81182032a4d64eaf99e0?branch=rawhide
Log:
Rebase to 8.2610.0
Resolves: rhbz#2558061
Backport omfile: apply symlink policy to legacy selector actions
Resolves: rhbz#2540022
Signed-off-by: Attila Lakatos <atttila.lakatos@gmail.com>
---
diff --git a/.gitignore b/.gitignore
index 71a4b8e..0b95365 100644
--- a/.gitignore
+++ b/.gitignore
@@ -106,3 +106,4 @@ rsyslog-4.6.3.tar.gz
/rsyslog-8.2602.0.tar.gz
/rsyslog-8.2604.0.tar.gz
/rsyslog-8.2608.0.tar.gz
+/rsyslog-8.2610.0.tar.gz
diff --git a/0002-omfile-apply-symlink-policy-to-legacy-selector-actio.patch b/0002-omfile-apply-symlink-policy-to-legacy-selector-actio.patch
new file mode 100644
index 0000000..e2e2132
--- /dev/null
+++ b/0002-omfile-apply-symlink-policy-to-legacy-selector-actio.patch
@@ -0,0 +1,97 @@
+From c179bd99a437c57e936d92ae5b7f5ff67cc016ba Mon Sep 17 00:00:00 2001
+From: Rainer Gerhards <rgerhards@adiscon.com>
+Date: Tue, 3 Nov 2026 11:47:03 +0000
+Subject: [PATCH] omfile: apply symlink policy to legacy selector actions
+
+Why:
+Commit b7d15fa added followSymlinks but the legacy selector path
+(e.g. "/dev/null") never initialised it, so the zero value forced
+O_NOFOLLOW even in the documented default mode. On Solaris /dev/null
+is a symlink, so failover-no-basic.sh and failover-no-rptd.sh fail
+there since 2026-06-24.
+
+Impact:
+Legacy file selectors follow final-component symlinks again unless
+compatibility.defaults.secure=strict or followSymlinks is set.
+
+Technical Overview:
+Copy the module followSymlinks setting in parseSelectorAct and resolve
+the compatibility default like setInstParamDefaults does. Add a
+regression test using a legacy selector that targets a symlink.
+
+Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
+Claude-Session: https://claude.ai/code/session_01VGYuTJEVFqN4H41zWSAJ7W
+---
+ tests/Makefile.am | 1 +
+ tests/omfile-followsymlinks-legacy.sh | 26 ++++++++++++++++++++++++++
+ tools/omfile.c | 12 ++++++++++++
+ 3 files changed, 39 insertions(+)
+ create mode 100755 tests/omfile-followsymlinks-legacy.sh
+
+diff --git a/tests/Makefile.am b/tests/Makefile.am
+index 00edb7924f..6202e45c12 100644
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -476,6 +476,7 @@ TESTS_DEFAULT = \
+ omfile-dynafile-mmnormalize-property.sh \
+ omfile-read-only-errmsg.sh \
+ omfile-followsymlinks.sh \
++ omfile-followsymlinks-legacy.sh \
+ omfile-null-filename.sh \
+ omfile-whitespace-filename.sh \
+ omfile-read-only.sh \
+diff --git a/tests/omfile-followsymlinks-legacy.sh b/tests/omfile-followsymlinks-legacy.sh
+new file mode 100755
+index 0000000000..8f1919c7b3
+--- /dev/null
++++ b/tests/omfile-followsymlinks-legacy.sh
+@@ -0,0 +1,26 @@
++#!/bin/bash
++# SPDX-License-Identifier: Apache-2.0
++# Validate that legacy selector omfile actions follow a final-component
++# symlink by default (compatibility.defaults.secure=warn), as documented.
++# Regression: the legacy path left followSymlinks unset, so O_NOFOLLOW was
++# always applied (visible on Solaris where /dev/null is a symlink).
++# The oracle is the symlink target content after synchronized shutdown.
++. ${srcdir:=.}/diag.sh init
++
++link="./${RSYSLOG_DYNNAME}.link"
++target="${RSYSLOG_DYNNAME}.target"
++rm -f "$link" "$target"
++: >"$target"
++ln -s "$target" "$link" || skip_test
++
++generate_conf
++add_conf '
++$template legacyfmt,"%msg:F,58:2%\n"
++:msg, contains, "msgnum:" '${link}';legacyfmt
++'
++startup
++injectmsg 0 1
++shutdown_when_empty
++wait_shutdown
++content_check "00000000" "$target"
++exit_test
+diff --git a/tools/omfile.c b/tools/omfile.c
+index f03f159ff3..71f4191490 100644
+--- a/tools/omfile.c
++++ b/tools/omfile.c
+@@ -2100,6 +2100,18 @@ BEGINparseSelectorAct
+ if (loadModConf != NULL) {
+ pData->bPermitDynaFilePathEscape = loadModConf->bPermitDynaFilePathEscape;
+ pData->bRestrictDynaFileTplType = loadModConf->bRestrictDynaFileTplType;
++ pData->bFollowSymlinks = loadModConf->bFollowSymlinks;
++ pData->bFollowSymlinksExplicit = loadModConf->bFollowSymlinksExplicit;
++ } else {
++ pData->bFollowSymlinks = -1;
++ pData->bFollowSymlinksExplicit = 0;
++ }
++ /* Legacy selector actions bypass setInstParamDefaults(), so apply the
++ * compatibility-controlled symlink policy here as well. Otherwise the
++ * zero-initialized instance would silently reject final-component
++ * symlinks (e.g. /dev/null on Solaris) even in the default mode. */
++ if (pData->bFollowSymlinks == -1) {
++ pData->bFollowSymlinks = getCompatDefaultFollowSymlinks(loadConf);
+ }
+
+ if (*p == '-') {
diff --git a/changelog b/changelog
index 6dbe4db..bb110c3 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+* Mon Nov 16 2026 Attila Lakatos <alakatos@redhat.com> - 8.2610.0-1
+- Rebase to 8.2610.0
+ Resolves: rhbz#2558061
+- omfile: apply symlink policy to legacy selector actions
+ Resolves: rhbz#2540022
+
* Thu Feb 26 2026 Remi Collet <remi@remirepo.net> - 8.2510.0-4
- rebuild with mongo-c-driver version 2
diff --git a/rsyslog.spec b/rsyslog.spec
index 54f6e56..bb8a025 100644
--- a/rsyslog.spec
+++ b/rsyslog.spec
@@ -38,7 +38,7 @@
Summary: Enhanced system logging and kernel message trapping daemon
Name: rsyslog
-Version: 8.2608.0
+Version: 8.2610.0
Release: %autorelease
License: GPL-3.0-or-later AND Apache-2.0
URL: http://www.rsyslog.com/
@@ -52,6 +52,8 @@ Source4: rsyslog.service
Source5: https://archive.apache.org/dist/qpid/proton/%{qpid_proton_v}/qpid-proton-%{qpid_proton_v}.tar.gz
Patch1: 0001-Use-OpenSSL-accessors-for-opaque-structs.patch
+# omfile: apply symlink policy to legacy selector actions (upstream c179bd99a)
+Patch2: 0002-omfile-apply-symlink-policy-to-legacy-selector-actio.patch
BuildRequires: make
BuildRequires: gcc
@@ -385,6 +387,7 @@ This module allows rsyslog to send messages to a RabbitMQ server.
%prep
# set up rsyslog sources
%setup -q -D
+%patch 2 -p1
%if %{with omamqp1}
# Unpack qpid-proton
@@ -511,6 +514,7 @@ autoreconf -if
%endif
--enable-omhttp \
--enable-omjournal \
+ --disable-omkinesis \
--enable-omprog \
--enable-omstdout \
%if %{with udpspoof}
diff --git a/sources b/sources
index c52d310..9f31855 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (rsyslog-8.2608.0.tar.gz) = 08f95a521326b60fd4a5aa0de90816e62de697c6b95e1c2c63d44aafbc8674b568c527969c55c602b863af6695c4c5046ff4c16fdb6d1441733eac709f98fe38
SHA512 (qpid-proton-0.40.0.tar.gz) = 3e7fe56ca1423f45f71d81f5e1d6ec5f21c073cc580628e12a8dbd545a86805b7312834e0d1234dde43797633d575ed639f21a96239b217500cc0a824482aae3
+SHA512 (rsyslog-8.2610.0.tar.gz) = 3f541fc6f3bde87c1e72fca38e584694c5c463a839c1a101f5eecd5db4ed64d557e72c6f15d2194fa2dccab77f8c10dfa52cb424983d7c2fed2b51de3f483f4c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-16 12:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 12:30 [rpms/rsyslog] rawhide: Rebase to 8.2610.0 Attila Lakatos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox