Skip to content
Snippets Groups Projects
Commit 58c75342 authored by Ian Jackson's avatar Ian Jackson
Browse files

arti-bench: Disable all fs permissions (fs-mistrust) checks

This is a benchmarking tool, and fs-mistrust doesn't like the
permissions in our CI.  The env var ARTI_FS_DISABLE_PERMISSION_CHECKS
is (of course) specific to arti.  Maybe it should be honoured here,
or this should be done via the config files.

But disabling this is fine for now.
parent f0eac618
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ dependencies = [
"arti-config",
"clap",
"float-ord",
"fs-mistrust",
"futures",
"rand 0.8.5",
"serde",
......
......@@ -26,4 +26,5 @@ tor-rtcompat = { path = "../tor-rtcompat", version = "0.3.0", features = ["tokio
arti = { path = "../arti", version = "0.3.0"}
arti-config = { path = "../arti-config", version = "0.3.0"}
arti-client = { package = "arti-client", path = "../arti-client", version = "0.3.0"}
fs-mistrust = { path = "../fs-mistrust", version = "0.1.0" }
tokio-socks = "0.5"
......@@ -359,6 +359,13 @@ fn main() -> Result<()> {
.values_of_os("arti-config")
.unwrap_or_default()
.for_each(|f| config_sources.push_file(f));
// TODO really we ought to get this from the arti configuration, or something.
// But this is OK for now since we are a benchmarking tool.
let mut mistrust = fs_mistrust::Mistrust::new();
mistrust.dangerously_trust_everyone();
config_sources.set_mistrust(mistrust);
let cfg = config_sources.load()?;
let config: ArtiConfig = cfg.try_into()?;
let tcc = config.tor_client_config()?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment