fix(permissions): validate network access flow

This commit is contained in:
2026-07-26 10:52:46 +02:00
parent 3047dc9195
commit 13fb538880
70 changed files with 4784 additions and 158 deletions

View File

@ -922,11 +922,12 @@ pub trait PermissionProjector: Send + Sync {
/// Computes the projection.
///
/// `eff == None` ⇒ the **empty** projection ([`PermissionProjection::empty`]):
/// we keep the CLI's native prompting (the product invariant of [`resolve`]).
/// `eff == None` means no filesystem/bash policy is projected. Implementations
/// may still project orthogonal system permissions, such as network env.
fn project(
&self,
eff: Option<&EffectivePermissions>,
network: Option<crate::system_permissions::NetworkPolicy>,
ctx: &ProjectionContext,
) -> PermissionProjection;