From 8c8fade1c96989539944f7669fb633688f91ff8f Mon Sep 17 00:00:00 2001 From: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> Date: Tue, 9 Dec 2025 12:54:42 -0800 Subject: [PATCH] Remove name from surrogate job obj Signed-off-by: Ludvig Liljenberg <4257730+ludfjig@users.noreply.github.com> --- .../src/hypervisor/surrogate_process_manager.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs b/src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs index c123eca1e..80a23e8aa 100644 --- a/src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs +++ b/src/hyperlight_host/src/hypervisor/surrogate_process_manager.rs @@ -38,7 +38,7 @@ use windows::Win32::System::SystemServices::NUMA_NO_PREFERRED_NODE; use windows::Win32::System::Threading::{ CREATE_SUSPENDED, CreateProcessA, PROCESS_INFORMATION, STARTUPINFOA, }; -use windows::core::{PCSTR, s}; +use windows::core::PCSTR; use super::surrogate_process::SurrogateProcess; use super::wrappers::{HandleWrapper, PSTRWrapper}; @@ -285,12 +285,7 @@ pub(crate) fn get_surrogate_process_manager() -> Result<&'static SurrogateProces fn create_job_object() -> Result { let security_attributes: SECURITY_ATTRIBUTES = Default::default(); - let job_object = unsafe { - CreateJobObjectA( - Some(&security_attributes), - s!("HyperlightSurrogateJobObject"), - )? - }; + let job_object = unsafe { CreateJobObjectA(Some(&security_attributes), PCSTR::null())? }; let mut job_object_information = JOBOBJECT_EXTENDED_LIMIT_INFORMATION { BasicLimitInformation: JOBOBJECT_BASIC_LIMIT_INFORMATION {