]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: fixed bug - some coredump temp files could be lost
authorKrayushkin Konstantin <kkrayushkin@lintech.ru>
Fri, 31 May 2019 08:16:17 +0000 (11:16 +0300)
committerLennart Poettering <lennart@poettering.net>
Fri, 31 May 2019 10:57:35 +0000 (12:57 +0200)
commitaae3c9a0753d32cbc366e7834cb29c2b7e2c8fcf
tree6659df6f3baf32e42bee7d025c91f7ef3f621469
parent79e68937d33e14eba5b3560aef6d37d9dd0f91b7
coredump: fixed bug - some coredump temp files could be lost

If the machine was suddenly shutted down (hard reboot for example) while
processing core dump, temp files created manually (not with a O_TEMPFILE flag)
stay in the system. After reboot systemd-coredump treat them as usual files, so
they wouldn't be rotated and shall pollute the filesystem.

Solution is to simply add those temp files to systemd-tmpfiles configs.
tmpfiles.d/systemd-tmp.conf