Skip to content

Commit

Permalink
Add missing exec hooks on partial load, macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Oct 14, 2024
1 parent 2ad2a5a commit 120ef24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+enable-exec-hooks-on-sip.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing exec hooks on partial load, macOS
4 changes: 3 additions & 1 deletion mirrord/layer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,9 @@ fn sip_only_layer_start(mut config: LayerConfig, patch_binaries: Vec<String>) {
load_only_layer_start(&config);

let mut hook_manager = HookManager::default();

unsafe {
exec_hooks::hooks::enable_exec_hooks(&mut hook_manager);
}
unsafe { exec_utils::enable_macos_hooks(&mut hook_manager, patch_binaries) };

// we need to hook file access to patch path to our temp bin.
Expand Down

0 comments on commit 120ef24

Please sign in to comment.