Skip to content

Commit dfa9fb8

Browse files
committed
host: add NetworkPolicy with opt-in networking and allowlist support
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 2c331a9 commit dfa9fb8

3 files changed

Lines changed: 248 additions & 27 deletions

File tree

host/examples/pyhl_as_library.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() -> anyhow::Result<()> {
2222
// expose host directories via the guest's hostfs.
2323
let mounts: &[Preopen] = &[];
2424

25-
let mut rt = pyhl::Runtime::new(&home, mounts)?;
25+
let mut rt = pyhl::Runtime::new(&home, mounts, None)?;
2626

2727
eprintln!("-- first run (hermetic from loaded snapshot) --");
2828
let t1 = rt.run_code(&code)?;

0 commit comments

Comments
 (0)