Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| systemd-coredump [2018/11/16 11:26] – [File list] rpjday | systemd-coredump [2018/11/16 11:50] (current) – [Rules] rpjday | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| </ | </ | ||
| + | ===== Configuring the core dump ===== | ||
| + | ==== core dump variables ==== | ||
| + | |||
| + | < | ||
| + | %% a single % character | ||
| + | %c core file size soft resource limit of crashing | ||
| + | %d dump mode—same | ||
| + | %e executable filename (without path prefix) | ||
| + | %E pathname of executable, with slashes | ||
| + | %g (numeric) real GID of dumped process | ||
| + | %h hostname (same as nodename returned by uname(2)) | ||
| + | %i TID of thread that triggered core dump, as seen in the PID namespace in which the thread resides (since Linux 3.18) | ||
| + | %I TID of thread that triggered core dump, as seen in the initial | ||
| + | %p PID of dumped | ||
| + | %P PID of dumped process, as seen in the initial | ||
| + | %s number of signal causing dump | ||
| + | %t time of dump, expressed as seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC) | ||
| + | %u (numeric) real UID of dumped process | ||
| + | </ | ||
| + | |||
| + | ===== Piping to a program ===== | ||
| + | |||
| + | ==== Rules ==== | ||
| + | |||
| + | * The program must be specified using an absolute pathname (or a pathname relative to the root directory, /), and must immediately follow the ' | ||
| + | * The command-line arguments can include any of the % specifiers listed above. For example, to pass the PID of the process that is being dumped, specify %p in an argument. | ||
| + | * The process created to run the program runs as user and group root. | ||
| + | * Running as root does not confer any exceptional security bypasses. | ||
| + | * The program pathname is interpreted with respect to the initial mount namespace | ||
| + | * The process runs in the initial namespaces (PID, mount, user, and so on) and not in the namespaces of the crashing process. | ||
| + | * The process starts with its current working directory as the root directory. If desired, | ||
| + | * Command-line | ||
| + | * The RLIMIT_CORE limit is not enforced for core dumps that are piped to a program via this mechanism. | ||
| + | |||
| + | ==== / | ||
| + | |||
| + | When collecting core dumps via a pipe to a user-space program, it can be useful for the collecting program to gather data about the crashing process from that process' | ||
| + | |||
| + | Since Linux 2.6.32, the / | ||
| + | |||
| + | A value of 0 in this file is special. | ||