mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
namespace: Rename notify_socket to host_notify_socket
Preparation for next commit.
This commit is contained in:
parent
446d737cba
commit
15816441ca
@ -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,
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user