summaryrefslogtreecommitdiffstats
path: root/source/configuration/modules/omfile.rst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:27:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:27:38 +0000
commit94080249995bb9e6b1bbe484777d6434dcbba6de (patch)
treede290c84569b2ad5c4b316cbf6a3045f438e0765 /source/configuration/modules/omfile.rst
parentAdding upstream version 8.2402.0+dfsg. (diff)
downloadrsyslog-doc-94080249995bb9e6b1bbe484777d6434dcbba6de.tar.xz
rsyslog-doc-94080249995bb9e6b1bbe484777d6434dcbba6de.zip
Adding upstream version 8.2404.0+dfsg.upstream/8.2404.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--source/configuration/modules/omfile.rst14
1 files changed, 10 insertions, 4 deletions
diff --git a/source/configuration/modules/omfile.rst b/source/configuration/modules/omfile.rst
index b5d1b22..58b5fe7 100644
--- a/source/configuration/modules/omfile.rst
+++ b/source/configuration/modules/omfile.rst
@@ -316,10 +316,16 @@ For each message, the file name is generated based on the given
template. Then, this file is opened. As with the *file* property,
data is appended if the file already exists. If the file does not
exist, a new file is created. The template given in "templateName"
-is just a regular :doc:`rsyslog template <../templates>`, so all
-you have full control over how to format the file name. Either file
-or dynaFile can be used, but not both. If both are given, dynaFile
-will be used.
+is just a regular :doc:`rsyslog template <../templates>`, so
+you have full control over how to format the file name.
+
+To avoid path traversal attacks, *you must make sure that the template
+used properly escapes file paths*. This is done by using the *securepath*
+parameter in the template's property statements, or the *secpath-drop*
+or *secpath-replace* property options with the property replacer.
+
+Either file or dynaFile can be used, but not both. If both are given,
+dynaFile will be used.
A cache of recent files is kept. Note
that this cache can consume quite some memory (especially if large