diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index fd306f1143..2c69dda36d 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -3407,7 +3407,7 @@ static int apply_mount_namespace( .propagate_dir = propagate_dir, .incoming_dir = incoming_dir, .private_namespace_dir = private_namespace_dir, - .notify_socket = root_dir || root_image ? params->notify_socket : NULL, + .host_notify_socket = root_dir || root_image ? params->notify_socket : NULL, .host_os_release_stage = host_os_release_stage, /* If DynamicUser=no and RootDirectory= is set then lets pass a relaxed sandbox info, diff --git a/src/core/namespace.c b/src/core/namespace.c index 2f3b8f03d1..47b0314485 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -2752,14 +2752,14 @@ int setup_namespace(const NamespaceParameters *p, char **reterr_path) { }; } - if (p->notify_socket) { + if (p->host_notify_socket) { MountEntry *me = mount_list_extend(&ml); if (!me) return log_oom_debug(); *me = (MountEntry) { - .path_const = p->notify_socket, - .source_const = p->notify_socket, + .path_const = p->host_notify_socket, + .source_const = p->host_notify_socket, .mode = MOUNT_BIND, .read_only = true, }; diff --git a/src/core/namespace.h b/src/core/namespace.h index 96f62be30a..02b0f77563 100644 --- a/src/core/namespace.h +++ b/src/core/namespace.h @@ -173,7 +173,7 @@ struct NamespaceParameters { const char *incoming_dir; const char *private_namespace_dir; - const char *notify_socket; + const char *host_notify_socket; const char *host_os_release_stage; bool ignore_protect_paths;