This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/vendor/codex/codex-rs/process-hardening
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-23 23:20:16 +01:00
..
src Vendor Codex and land Phase 1 Epiphany state slice 2026-04-23 23:20:16 +01:00
BUILD.bazel Vendor Codex and land Phase 1 Epiphany state slice 2026-04-23 23:20:16 +01:00
Cargo.toml Vendor Codex and land Phase 1 Epiphany state slice 2026-04-23 23:20:16 +01:00
README.md Vendor Codex and land Phase 1 Epiphany state slice 2026-04-23 23:20:16 +01:00

codex-process-hardening

This crate provides pre_main_hardening(), which is designed to be called pre-main() (using #[ctor::ctor]) to perform various process hardening steps, such as

  • disabling core dumps
  • disabling ptrace attach on Linux and macOS
  • removing dangerous or noisy environment variables such as LD_PRELOAD, DYLD_*, and macOS malloc stack-logging controls