Merge remote-tracking branch 'systemd-security/coredump-d'

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-05-29 17:22:19 +02:00
8 changed files with 161 additions and 22 deletions
+2 -2
View File
@@ -6,12 +6,12 @@
#include <elfutils/libdwfl.h>
#include <libelf.h>
#endif
#include <sys/prctl.h>
#include <unistd.h>
#include "sd-json.h"
#include "alloc-util.h"
#include "coredump-util.h"
#include "dlfcn-util.h"
#include "elf-util.h"
#include "errno-util.h"
@@ -829,7 +829,7 @@ int parse_elf_object(int fd, const char *executable, const char *root, bool fork
if (r == 0) {
/* We want to avoid loops, given this can be called from systemd-coredump */
if (fork_disable_dump) {
r = RET_NERRNO(prctl(PR_SET_DUMPABLE, 0));
r = set_dumpable(SUID_DUMP_DISABLE);
if (r < 0)
report_errno_and_exit(error_pipe[1], r);
}