summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--src/journal/journald-server.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0374f2a345..249c5f6a64 100644
--- a/NEWS
+++ b/NEWS
@@ -64,7 +64,7 @@ CHANGES WITH 227:
'-1' value for disabling stays around for compat reasons.
* The PrivateTmp=, PrivateDevices=, PrivateNetwork=,
- NoNewPrivileges=, TTYPath, WorkingDirectory= and
+ NoNewPrivileges=, TTYPath=, WorkingDirectory= and
RootDirectory= properties can now be set for transient
units.
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 564a1ae73d..4566612949 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -825,7 +825,7 @@ static void dispatch_message_real(
void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) {
char mid[11 + 32 + 1];
char buffer[16 + LINE_MAX + 1];
- struct iovec iovec[N_IOVEC_META_FIELDS + 4];
+ struct iovec iovec[N_IOVEC_META_FIELDS + 6];
int n = 0;
va_list ap;
struct ucred ucred = {};
@@ -833,6 +833,9 @@ void server_driver_message(Server *s, sd_id128_t message_id, const char *format,
assert(s);
assert(format);
+ IOVEC_SET_STRING(iovec[n++], "SYSLOG_FACILITY=3");
+ IOVEC_SET_STRING(iovec[n++], "SYSLOG_IDENTIFIER=systemd-journald");
+
IOVEC_SET_STRING(iovec[n++], "PRIORITY=6");
IOVEC_SET_STRING(iovec[n++], "_TRANSPORT=driver");