diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-09 12:17:41 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-09 12:17:41 +0000 |
commit | 047d99337f2e32cf6fc88bf415d4a3ed2a286539 (patch) | |
tree | 1a5de1c1c05f809ecd2826b3c71c402616d9bfd3 | |
parent | 3a3f71e5f09073552dd9b0de2058d8894e1bb4f9 (diff) |
systemd-run can now launch units with SyslogLevelPrefix
-rw-r--r-- | src/core/dbus-execute.c | 4 | ||||
-rw-r--r-- | src/shared/bus-util.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c index adf613d328..f902fd6f2d 100644 --- a/src/core/dbus-execute.c +++ b/src/core/dbus-execute.c @@ -998,7 +998,7 @@ int bus_exec_context_set_transient_property( } else if (STR_IN_SET(name, "IgnoreSIGPIPE", "TTYVHangup", "TTYReset", "PrivateTmp", "PrivateDevices", "PrivateNetwork", - "NoNewPrivileges")) { + "NoNewPrivileges", "SyslogLevelPrefix")) { int b; r = sd_bus_message_read(message, "b", &b); @@ -1020,6 +1020,8 @@ int bus_exec_context_set_transient_property( c->private_network = b; else if (streq(name, "NoNewPrivileges")) c->no_new_privileges = b; + else if (streq(name, "SyslogLevelPrefix")) + c->syslog_level_prefix = b; unit_write_drop_in_private_format(u, mode, name, "%s=%s\n", name, yes_no(b)); } diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 10df3fc3d6..16e5919d0a 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1426,7 +1426,8 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen "CPUAccounting", "MemoryAccounting", "BlockIOAccounting", "TasksAccounting", "SendSIGHUP", "SendSIGKILL", "WakeSystem", "DefaultDependencies", "IgnoreSIGPIPE", "TTYVHangup", "TTYReset", "RemainAfterExit", - "PrivateTmp", "PrivateDevices", "PrivateNetwork", "NoNewPrivileges")) { + "PrivateTmp", "PrivateDevices", "PrivateNetwork", "NoNewPrivileges", + "SyslogLevelPrefix")) { r = parse_boolean(eq); if (r < 0) { |