Skip to content

feat: Add macOS-Specific Memory Limit Enforcement Using libc and pre_exec#156

Draft
LuchoBazz wants to merge 1 commit intomainfrom
feat/macos-memory-limit
Draft

feat: Add macOS-Specific Memory Limit Enforcement Using libc and pre_exec#156
LuchoBazz wants to merge 1 commit intomainfrom
feat/macos-memory-limit

Conversation

@LuchoBazz
Copy link
Copy Markdown
Owner

Summary

This Pull Request introduces macOS-specific functionality to enforce memory limits on executed child processes. The update includes the addition of the libc dependency exclusively for the macos target and the use of CommandExt::pre_exec to apply an address-space (RLIMIT_AS) limit before process execution.

Key Changes

  • Cargo.toml

    • Added a platform-specific dependency block for macOS:

      [target.'cfg(target_os = "macos")'.dependencies]
      libc = "0.2"

@LuchoBazz LuchoBazz marked this pull request as draft November 23, 2025 15:22
@LuchoBazz LuchoBazz force-pushed the feat/macos-memory-limit branch 24 times, most recently from 7719b1c to 380e155 Compare November 23, 2025 19:56
@LuchoBazz LuchoBazz force-pushed the feat/macos-memory-limit branch from 380e155 to 6f558ab Compare November 23, 2025 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant