From f230cb5c03b6be64c2cc12ae22bd448885b4a9e0 Mon Sep 17 00:00:00 2001 From: trinity-1686a Date: Wed, 5 Oct 2022 18:30:34 +0200 Subject: [PATCH] remove manual limitation of coredump size it's already disabled by secmem_proc --- Cargo.lock | 1 - crates/arti-testing/Cargo.toml | 1 - crates/arti/src/process.rs | 4 ---- 3 files changed, 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0d127880f..2e627055b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -230,7 +230,6 @@ dependencies = [ "futures", "pin-project", "rand 0.8.5", - "rlimit", "serde", "tokio", "tor-checkable", diff --git a/crates/arti-testing/Cargo.toml b/crates/arti-testing/Cargo.toml index 3de2ac15c..15f70bd85 100644 --- a/crates/arti-testing/Cargo.toml +++ b/crates/arti-testing/Cargo.toml @@ -27,7 +27,6 @@ config = { version = "0.13", default-features = false } futures = "0.3.14" pin-project = "1" rand = "0.8" -rlimit = "0.8.3" serde = { version = "1.0.103", features = ["derive"] } tokio = { version = "1.7", features = ["signal", "macros"] } tor-checkable = { path = "../tor-checkable", version = "0.3.0", features = ["experimental-api"] } diff --git a/crates/arti/src/process.rs b/crates/arti/src/process.rs index 7f5c557bd..3eb38b009 100644 --- a/crates/arti/src/process.rs +++ b/crates/arti/src/process.rs @@ -43,10 +43,6 @@ pub(crate) fn enable_process_hardening() -> anyhow::Result<()> { return Ok(()); } - #[cfg(unix)] - rlimit::setrlimit(rlimit::Resource::CORE, 0, 0) - .context("Problem while disabling core dumps")?; - secmem_proc::harden_process_std_err().context("Problem while hardening process")?; Ok(())