diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:27:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:27:39 +0000 |
commit | 1567a06bea58f651a462b43054bf6f604c102ed4 (patch) | |
tree | 029c2cfed1095d039ca3922db024e45eda1e6fe8 /source/configuration/modules/omfile.rst | |
parent | Releasing progress-linux version 8.2402.0+dfsg-1~progress7.99u1. (diff) | |
download | rsyslog-doc-1567a06bea58f651a462b43054bf6f604c102ed4.tar.xz rsyslog-doc-1567a06bea58f651a462b43054bf6f604c102ed4.zip |
Merging upstream version 8.2404.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'source/configuration/modules/omfile.rst')
-rw-r--r-- | source/configuration/modules/omfile.rst | 14 |
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 |