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:33] – [Coredump configuration] rpjday | systemd-coredump [2018/11/16 11:50] (current) – [Rules] rpjday | ||
|---|---|---|---|
| Line 33: | Line 33: | ||
| </ | </ | ||
| - | ===== core dump variables | + | ===== Configuring the core dump ===== |
| + | |||
| + | ==== core dump variables | ||
| < | < | ||
| Line 52: | Line 54: | ||
| </ | </ | ||
| + | ===== 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. | ||