pub struct ExecToolProfileConfig {
pub tool: String,
pub metal: bool,
pub unix_sockets: bool,
pub files: Vec<String>,
pub list_dirs: Vec<String>,
}Expand description
What the runs of one registered tool get on top of the sandbox every run has. Each field is off or empty unless set, and a tool with no entry runs under the unchanged sandbox.
[[exec.tool_profiles]]
tool = "sh-gpu"
metal = true
files = ["/tmp/gpu-test.lock"]
list_dirs = ["/Volumes/work"]Fields§
§tool: StringThe registered tool’s name, exactly.
metal: boolThe Metal GPU device, the system shader compiler and Metal’s own per-user shader cache folder.
unix_sockets: boolAccepted and adds no rule. Every run may already bind and connect
unix-domain sockets under its run directory and its own temporary
directory, which is the one socket rule. The key still loads so a
configuration that sets it keeps working, and exec.identity names
it under the profile’s superseded_keys.
files: Vec<String>Exact files, absolute, that a run may read, create and write.
list_dirs: Vec<String>Exact directories, absolute, that a run may open and list. Nothing below them is granted.
Trait Implementations§
Source§impl Clone for ExecToolProfileConfig
impl Clone for ExecToolProfileConfig
Source§impl Debug for ExecToolProfileConfig
impl Debug for ExecToolProfileConfig
Source§impl Default for ExecToolProfileConfig
impl Default for ExecToolProfileConfig
Source§impl<'de> Deserialize<'de> for ExecToolProfileConfig
impl<'de> Deserialize<'de> for ExecToolProfileConfig
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>,
impl Eq for ExecToolProfileConfig
Source§impl PartialEq for ExecToolProfileConfig
impl PartialEq for ExecToolProfileConfig
impl StructuralPartialEq for ExecToolProfileConfig
Auto Trait Implementations§
impl Forget for ExecToolProfileConfig
impl Freeze for ExecToolProfileConfig
impl Move for ExecToolProfileConfig
impl RefUnwindSafe for ExecToolProfileConfig
impl Send for ExecToolProfileConfig
impl Sync for ExecToolProfileConfig
impl Unpin for ExecToolProfileConfig
impl UnsafeUnpin for ExecToolProfileConfig
impl UnwindSafe for ExecToolProfileConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more