summaryrefslogtreecommitdiff
path: root/src/core/dbus-util.h
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-07-30 19:37:10 +0100
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-01-18 17:24:05 +0000
commit5e8deb94c6f05137942b10b5288a37d9b09fd43f (patch)
tree1cbed6e76c6398d4c183a6b71e0a9927386833d8 /src/core/dbus-util.h
parent94293d65cd4125347e21b3e423d0e245226b1be2 (diff)
downloadsystemd-5e8deb94c6f05137942b10b5288a37d9b09fd43f.tar.gz
core: add DBUS method to bind mount new nodes without service restart
Allow to setup new bind mounts for a service at runtime (via either DBUS or a new 'systemctl bind' verb) with a new helper that forks into the unit's mount namespace. Add a new integration test to cover this. Useful for zero-downtime addition to services that are running inside mount namespaces, especially when using RootImage/RootDirectory. If a service runs with a read-only root, a tmpfs is added on /run to ensure we can create the airlock directory for incoming mounts under /run/host/incoming.
Diffstat (limited to 'src/core/dbus-util.h')
-rw-r--r--src/core/dbus-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/dbus-util.h b/src/core/dbus-util.h
index 4e7c68e843..e35c632d37 100644
--- a/src/core/dbus-util.h
+++ b/src/core/dbus-util.h
@@ -248,3 +248,4 @@ static inline int bus_set_transient_usec(Unit *u, const char *name, usec_t *p, s
static inline int bus_set_transient_usec_fix_0(Unit *u, const char *name, usec_t *p, sd_bus_message *message, UnitWriteFlags flags, sd_bus_error *error) {
return bus_set_transient_usec_internal(u, name, p, true, message, flags, error);
}
+int bus_verify_manage_units_async_full(Unit *u, const char *verb, int capability, const char *polkit_message, bool interactive, sd_bus_message *call, sd_bus_error *error);