manager: refuse reloading/reexecing when /run is overly full
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Feb 2017 11:12:54 +0000 (12:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Feb 2017 15:58:06 +0000 (16:58 +0100)
commitae57dad3f92d116c66c4ca0223b7e07b44041436
tree671efaa727b66ea5ce53a4e31fe99b1ad18d5c42
parent0f92383243fbeb6c33de8abed23342f51319af31
manager: refuse reloading/reexecing when /run is overly full

Let's add an extra safety check: before entering a reload/reexec, let's
verify that there's enough room in /run for it.

Fixes: #5016
src/core/dbus-manager.c
src/core/dbus-manager.h
src/core/manager.c
src/libsystemd/sd-bus/bus-common-errors.c
src/libsystemd/sd-bus/bus-common-errors.h