pub struct ProcessConfig {
pub allow: Vec<String>,
}Expand description
Process-spawn configuration for a principal.
Empty allow means the principal cannot spawn external processes.
Fields§
§allow: Vec<String>Executables permitted for process spawn.
Entries may be absolute paths or short names drawn from a sandbox profile allowlist; the final grammar is pinned by Layer 5. This layer validates only that entries are non-empty strings.
Implementations§
Source§impl ProcessConfig
impl ProcessConfig
Sourcepub fn validate(&self) -> ProfileResult<()>
pub fn validate(&self) -> ProfileResult<()>
Validate process-allow entries.
§Errors
Returns ProfileError::Invalid if any entry is an empty string.
Richer grammar checking is deferred to Layer 5.
Trait Implementations§
Source§impl Clone for ProcessConfig
impl Clone for ProcessConfig
Source§fn clone(&self) -> ProcessConfig
fn clone(&self) -> ProcessConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessConfig
impl Debug for ProcessConfig
Source§impl Default for ProcessConfig
impl Default for ProcessConfig
Source§fn default() -> ProcessConfig
fn default() -> ProcessConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProcessConfig
impl<'de> Deserialize<'de> for ProcessConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProcessConfig
Source§impl PartialEq for ProcessConfig
impl PartialEq for ProcessConfig
Source§fn eq(&self, other: &ProcessConfig) -> bool
fn eq(&self, other: &ProcessConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessConfig
impl Serialize for ProcessConfig
impl StructuralPartialEq for ProcessConfig
Auto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnsafeUnpin for ProcessConfig
impl UnwindSafe for ProcessConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.