Blame SOURCES/0210-man-note-that-journal-does-not-validate-syslog-field.patch
|
|
a3e2b5 |
From 705a67a53a8a1b836ef17f048366bbf33357afc1 Mon Sep 17 00:00:00 2001
|
|
|
a3e2b5 |
From: Jan Synacek <jsynacek@redhat.com>
|
|
|
a3e2b5 |
Date: Tue, 14 May 2019 10:45:08 +0200
|
|
|
a3e2b5 |
Subject: [PATCH] man: note that journal does not validate syslog fields
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
(cherry picked from commit 63ea8032f28052f7cda860e5324c0a83dee7ed23)
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
Resolves: #1707175
|
|
|
a3e2b5 |
---
|
|
|
a3e2b5 |
man/systemd.journal-fields.xml | 5 +++++
|
|
|
a3e2b5 |
1 file changed, 5 insertions(+)
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
diff --git a/man/systemd.journal-fields.xml b/man/systemd.journal-fields.xml
|
|
|
a3e2b5 |
index c079274c32..0c95c4cd95 100644
|
|
|
a3e2b5 |
--- a/man/systemd.journal-fields.xml
|
|
|
a3e2b5 |
+++ b/man/systemd.journal-fields.xml
|
|
|
a3e2b5 |
@@ -111,6 +111,11 @@
|
|
|
a3e2b5 |
<varname>program_invocation_short_name</varname> variable,
|
|
|
a3e2b5 |
see
|
|
|
a3e2b5 |
<citerefentry project='die-net'><refentrytitle>program_invocation_short_name</refentrytitle><manvolnum>3</manvolnum></citerefentry>.)</para>
|
|
|
a3e2b5 |
+ <para>Note that the journal service does not validate the values of any structured
|
|
|
a3e2b5 |
+ journal fields whose name is not prefixed with an underscore, and this includes any
|
|
|
a3e2b5 |
+ syslog related fields such as these. Hence, applications that supply a facility, PID,
|
|
|
a3e2b5 |
+ or log level are expected to do so properly formatted, i.e. as numeric integers formatted
|
|
|
a3e2b5 |
+ as decimal strings.</para>
|
|
|
a3e2b5 |
</listitem>
|
|
|
a3e2b5 |
|
|
|
a3e2b5 |
</varlistentry>
|