Earlier quoted context omitted.
It's not like it was ever a safe assumption to blindly dump core to a process' CWD. It was just a convenient option in a developer-centric UNIX mindset, in lieu of anything better. Sometimes daemons run with a CWD changed somewhere rarely if ever written to at runtime, and presumed to primarily contain information intended for sharing. It's not hard to imagine a security-conscious daemon that's done both chroot() and…
I really don’t get why people are so quick to jump on “it changed so it’s bad.” systemd-coredump has to work in every possible case and is dealing with every unhappy path you can imagine. The kernel has a laundry list of situations where core files can’t be saved and systemd made the choice to set it up so some of the failure modes can’t happen. If they just tried to write to cwd there would be a blogpost about “syst…
That's not actually the issue here. Rather: "it changed so now it's inconsistent across platforms"
> There was no way to really win here.
There is:
- if you're changing a multi-platform standard, include the other platforms (e.g. create a coredumpctl tool for *BSD)
- do the changes slowly/incrementally in a backwards-compatible way (e.g. apply the new coredump locations first to read-only containers and service daemons running as systemd units)