pub struct SessionPermissionedProcessRunnerFactory<Factory> { /* private fields */ }Expand description
Runtime decorator that records approved capabilities, not OS mount policy.
Implementations§
Trait Implementations§
Source§impl<Factory: Clone> Clone for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory: Clone> Clone for SessionPermissionedProcessRunnerFactory<Factory>
Source§impl<Factory: Debug> Debug for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory: Debug> Debug for SessionPermissionedProcessRunnerFactory<Factory>
Source§impl<Factory: PermissionedProcessRunnerFactory> PermissionedProcessRunnerFactory for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory: PermissionedProcessRunnerFactory> PermissionedProcessRunnerFactory for SessionPermissionedProcessRunnerFactory<Factory>
Source§fn validate_request(
&self,
request: &PermissionRequest,
) -> Result<(), ProcessRunnerError>
fn validate_request( &self, request: &PermissionRequest, ) -> Result<(), ProcessRunnerError>
Validates the request against the backend’s hard capability policy. Read more
Source§fn request_capabilities_are_satisfied(
&self,
request: &PermissionRequest,
) -> Result<bool, ProcessRunnerError>
fn request_capabilities_are_satisfied( &self, request: &PermissionRequest, ) -> Result<bool, ProcessRunnerError>
Returns whether the backend already enforces every capability in the
request for the current process session. Read more
Source§fn runner_for(&self, request: &PermissionRequest) -> Arc<dyn ProcessRunner> ⓘ
fn runner_for(&self, request: &PermissionRequest) -> Arc<dyn ProcessRunner> ⓘ
Creates the process runner for one approved permission request, without
mutating session state. Runtime handles retention after successful preparation.
Source§fn prepare_approved_request(
&self,
request: &PermissionRequest,
) -> Result<PreparedProcessPermission, ProcessRunnerError>
fn prepare_approved_request( &self, request: &PermissionRequest, ) -> Result<PreparedProcessPermission, ProcessRunnerError>
Prepares one validated action and its normalized path evidence without
changing permission state. Adapters can share a single filesystem view
across validation and materialization. The default retains no paths.
Auto Trait Implementations§
impl<Factory> Forget for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory> Freeze for SessionPermissionedProcessRunnerFactory<Factory>where
*const ArcInner<RwLock<ProcessSessionPermissionSnapshot>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionSnapshot>>>: Freeze,
Factory: Freeze,
impl<Factory> Move for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory> RefUnwindSafe for SessionPermissionedProcessRunnerFactory<Factory>where
Atomic<usize>: RefUnwindSafe,
RwLock<ProcessSessionPermissionSnapshot>: RefUnwindSafe,
Factory: RefUnwindSafe,
impl<Factory> Send for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory> Sync for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory> Unpin for SessionPermissionedProcessRunnerFactory<Factory>
impl<Factory> UnsafeUnpin for SessionPermissionedProcessRunnerFactory<Factory>where
*const ArcInner<RwLock<ProcessSessionPermissionSnapshot>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionSnapshot>>>: UnsafeUnpin,
Factory: UnsafeUnpin,
impl<Factory> UnwindSafe for SessionPermissionedProcessRunnerFactory<Factory>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more