diff --git a/mirrord/layer/src/go/linux_x64.rs b/mirrord/layer/src/go/linux_x64.rs index dcabdeee4b7..8a8f2fdd994 100644 --- a/mirrord/layer/src/go/linux_x64.rs +++ b/mirrord/layer/src/go/linux_x64.rs @@ -344,6 +344,7 @@ unsafe extern "C" fn c_abi_syscall_handler( #[cfg(all(target_os = "linux", not(target_arch = "aarch64")))] libc::SYS_mkdir => mkdir_detour(param1 as _, param2 as _) as i64, libc::SYS_mkdirat => mkdirat_detour(param1 as _, param2 as _, param3 as _) as i64, + libc::SYS_rmdir => rmdir_detour(param1 as _) as i64, _ => { let (Ok(result) | Err(result)) = syscalls::syscall!( syscalls::Sysno::from(syscall as i32), diff --git a/mirrord/layer/src/go/mod.rs b/mirrord/layer/src/go/mod.rs index 003eed8692c..24627c7184b 100644 --- a/mirrord/layer/src/go/mod.rs +++ b/mirrord/layer/src/go/mod.rs @@ -113,6 +113,7 @@ unsafe extern "C" fn c_abi_syscall6_handler( #[cfg(all(target_os = "linux", not(target_arch = "aarch64")))] libc::SYS_mkdir => mkdir_detour(param1 as _, param2 as _) as i64, libc::SYS_mkdirat => mkdirat_detour(param1 as _, param2 as _, param3 as _) as i64, + libc::SYS_rmdir => rmdir_detour(param1 as _) as i64, _ => { let (Ok(result) | Err(result)) = syscalls::syscall!( syscalls::Sysno::from(syscall as i32),