diff --git a/rsyslog-8.2310.0-omprog-binary-path.patch b/rsyslog-8.2310.0-omprog-binary-path.patch new file mode 100644 index 0000000..fccef4d --- /dev/null +++ b/rsyslog-8.2310.0-omprog-binary-path.patch @@ -0,0 +1,41 @@ +diff -up rsyslog-8.2310.0/doc/configuration/modules/omprog.html.orig rsyslog-8.2310.0/doc/configuration/modules/omprog.html +--- rsyslog-8.2310.0/doc/configuration/modules/omprog.html.orig 2024-01-05 13:21:14.474252913 +0100 ++++ rsyslog-8.2310.0/doc/configuration/modules/omprog.html 2024-01-05 13:25:09.128562192 +0100 +@@ -144,8 +144,11 @@ passed to the external program.
+ + + +-Full path and command line parameters of the external program to execute.
+-In legacy config, it is not possible to specify command line parameters.
++Full path and command line parameters of the external program to execute. ++ Arbitrary external programs should be placed under the /usr/libexec/rsyslog directory. ++ That is, the binaries put in this namespaced directory are meant for the consumption ++ of rsyslog, and are not intended to be executed by users. ++ In legacy config, it is not possible to specify command line parameters.
+ +In the following example, logs will be sent to a program log.sh
located
+-in /path/to
. The program will receive the command line arguments
++in /usr/libexec/rsyslog
. The program will receive the command line arguments
+ p1
, p2
and --param3="value 3"
.
module(load="omprog")
+
+ action(type="omprog"
+- binary="/path/to/log.sh p1 p2 --param3=\"value 3\""
++ binary="/usr/libexec/rsyslog/log.sh p1 p2 --param3=\"value 3\""
+ template="RSYSLOG_TraditionalFileFormat")
+