Skip to content

Commit

Permalink
Fix seccomp filter
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Sep 14, 2023
1 parent 43f93f9 commit 29ce9e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ fn restrict_networking() -> Result<()> {
let result = create_user_namespace(true).and_then(|_| unshare(Namespaces::NETWORK));

// Apply seccomp network filter.
result.or_else(|_| NetworkFilter::apply())
let seccomp_result = NetworkFilter::apply();
result.or(seccomp_result)
}

/// Create a new user namespace.
Expand Down

0 comments on commit 29ce9e4

Please sign in to comment.