aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Filak <jakub@thefilaks.net>2018-02-15 12:12:46 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-15 12:12:46 +0100
commitf45b8015513d38ee5f7cc361db9c5b88c9aae704 (patch)
treefbf25c8847bd2cea4c1aea2f10a184fa967e5cea /sysctl.d
parentdhcp6: fix uninitialized variable in returning from client_parse_message() (#... (diff)
downloadsystemd-f45b8015513d38ee5f7cc361db9c5b88c9aae704.tar.gz
systemd-f45b8015513d38ee5f7cc361db9c5b88c9aae704.tar.bz2
systemd-f45b8015513d38ee5f7cc361db9c5b88c9aae704.zip
coredump: accept hostname on command line (#8033)
This commint adds a new command line parameter to sytemd-coredump. The parameter should be mappend to core_pattern's placeholder %h - hostname. The field _HOSTNAME holds the name from the kernel's namespaces which might be different then the one comming from process' namespaces. It is true that the real hostname is usually available in the field COREDUMP_ENVIRON (environment variables) but I believe it is more reliable to use the value passed by kernel. ---- The length of iovec is no longer static and hence I corrected the declarations of the functions set_iovec_field and set_iovec_field_free. Thank you @yuwata and @poettering!
Diffstat (limited to 'sysctl.d')
-rw-r--r--sysctl.d/50-coredump.conf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysctl.d/50-coredump.conf.in b/sysctl.d/50-coredump.conf.in
index 5a25de451..ccd5c2cc5 100644
--- a/sysctl.d/50-coredump.conf.in
+++ b/sysctl.d/50-coredump.conf.in
@@ -9,4 +9,4 @@
# and systemd-coredump(8) and core(5) for the explanation of the
# setting below.
-kernel.core_pattern=|@rootlibexecdir@/systemd-coredump %P %u %g %s %t %c %e
+kernel.core_pattern=|@rootlibexecdir@/systemd-coredump %P %u %g %s %t %c %h %e