Skip to content

Commit

Permalink
dont hook execv for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
meowjesty committed Jul 23, 2024
1 parent 241e27f commit 7fffe00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mirrord/layer/src/exec_hooks/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ pub(crate) unsafe extern "C" fn execve_detour(
}

pub(crate) unsafe fn enable_exec_hooks(hook_manager: &mut HookManager) {
#[cfg(not(target_os = "macos"))]
replace!(hook_manager, "execv", execv_detour, FnExecv, FN_EXECV);

replace!(hook_manager, "execve", execve_detour, FnExecve, FN_EXECVE);
}

0 comments on commit 7fffe00

Please sign in to comment.