Lines Matching defs:user
61 #include "user-util.h"
182 [CONTEXT_PID] = "user.coredump.pid",
183 [CONTEXT_UID] = "user.coredump.uid",
184 [CONTEXT_GID] = "user.coredump.gid",
185 [CONTEXT_SIGNAL] = "user.coredump.signal",
186 [CONTEXT_TIMESTAMP] = "user.coredump.timestamp",
187 [CONTEXT_COMM] = "user.coredump.comm",
188 [CONTEXT_EXE] = "user.coredump.exe",
573 const char *user = "systemd-coredump";
575 r = get_user_creds(&user, &uid, &gid, NULL, NULL);
577 log_warning_errno(r, "Cannot resolve %s user. Proceeding to dump core as root: %m", user);
630 /* Now, let's drop privileges to become the user who owns the segfaulted process and allocate the coredump
631 * memory under the user's uid. This also ensures that the credentials journald will see are the ones of the
632 * coredumping user, thus making sure the user gets access to the core dump. Let's also get rid of all
645 core_message = strjoin("MESSAGE=Process ", context[CONTEXT_PID], " (", context[CONTEXT_COMM], ") of user ", context[CONTEXT_UID], " dumped core.\n\n", stacktrace, NULL);
655 core_message = strjoin("MESSAGE=Process ", context[CONTEXT_PID], " (", context[CONTEXT_COMM], ") of user ", context[CONTEXT_UID], " dumped core.", NULL);