pub struct ScopedPolicyChecker {
pub scope: Moniker,
/* private fields */
}
Expand description
Evaluates security policy relative to a specific Component (based on that Component’s Moniker).
Fields§
§scope: Moniker
The moniker of the component that policy will be evaluated for.
Implementations§
Source§impl ScopedPolicyChecker
impl ScopedPolicyChecker
pub fn new(policy: Arc<SecurityPolicy>, scope: Moniker) -> Self
pub fn ambient_mark_vmo_exec_allowed(&self) -> Result<(), PolicyError>
pub fn main_process_critical_allowed(&self) -> Result<(), PolicyError>
pub fn create_raw_processes_allowed(&self) -> Result<(), PolicyError>
Trait Implementations§
Source§impl Clone for ScopedPolicyChecker
impl Clone for ScopedPolicyChecker
Source§fn clone(&self) -> ScopedPolicyChecker
fn clone(&self) -> ScopedPolicyChecker
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ScopedPolicyChecker
impl RefUnwindSafe for ScopedPolicyChecker
impl Send for ScopedPolicyChecker
impl Sync for ScopedPolicyChecker
impl Unpin for ScopedPolicyChecker
impl UnwindSafe for ScopedPolicyChecker
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)