diff --git a/sandboxed_api/sandbox2/executor.cc b/sandboxed_api/sandbox2/executor.cc index a01e870..d4c8873 100644 --- a/sandboxed_api/sandbox2/executor.cc +++ b/sandboxed_api/sandbox2/executor.cc @@ -129,7 +129,7 @@ pid_t Executor::StartSubProcess(int32_t clone_flags, const Namespace* ns, if (ns) { clone_flags |= ns->GetCloneFlags(); *request.mutable_mount_tree() = ns->mounts().GetMountTree(); - request.set_hostname(ns->GetHostname()); + request.set_hostname(ns->hostname()); } request.set_clone_flags(clone_flags); diff --git a/sandboxed_api/sandbox2/namespace.h b/sandboxed_api/sandbox2/namespace.h index de49cf1..4e87569 100644 --- a/sandboxed_api/sandbox2/namespace.h +++ b/sandboxed_api/sandbox2/namespace.h @@ -56,7 +56,6 @@ class Namespace final { const Mounts& mounts() const { return mounts_; } const std::string& hostname() const { return hostname_; } - const std::string& GetHostname() const { return hostname_; } private: friend class StackTracePeer;