Skip to content

Commit

Permalink
feat: wire up network config for sandbox (#1010)
Browse files Browse the repository at this point in the history
wire up network support
  • Loading branch information
wolfv authored Jan 4, 2025
1 parent 2c4988e commit 1cbf7a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/rattler_sandbox/src/sandbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ fn init() {
let _ = sandbox.add_exception(birdcage::Exception::WriteAndRead(path.into()));
}
}

if opts.network {
let _ = sandbox.add_exception(birdcage::Exception::Networking);
}

if let Some((exe, args)) = opts.args.split_first() {
// Initialize the sandbox; by default everything is prohibited.
let mut command = Command::new(exe);
Expand Down

0 comments on commit 1cbf7a2

Please sign in to comment.