diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-04-19 17:59:47 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-19 16:59:47 +0200 |
commit | 0c7739039b090a2c1f8c894c0e6eb75fc25663a0 (patch) | |
tree | 7f63162c5d077eb3c1a8a6760427dac40f264aff /src/shared/install.c | |
parent | 490d20e65dd85628f910299a3925bbff466b2e74 (diff) |
coredump: create unnamed temporary files if possible (O_TMPFILE) (#3065)
Don't leave temporary files if the coredump service is aborted during
the operation
Yeah, these are temporary files that systemd-coredump needs while
processing the coredumps. Of course, if the coredump service is aborted
during the operation we better shouldn't leave those files around. This
is hence a bug to fix in our coredumping code.
See https://github.com/systemd/systemd/issues/2804#issuecomment-210578147
Another option is to simply use O_TMPFILE, and when it is not available
fall back to the current behaviour. After all, the files are cleaned up
eventually, through normal tmpfiles aging, and the offending file
systems are pretty exotic these days, or not in the upstream kernel.
See https://github.com/systemd/systemd/issues/2804#issuecomment-211496707
Diffstat (limited to 'src/shared/install.c')
0 files changed, 0 insertions, 0 deletions