pub struct RunAs {
pub uid: u32,
pub gid: u32,
}Expand description
Identity to run the sandboxed process as.
Applied via a single-entry user-namespace map (unshare(CLONE_NEWUSER) +
uid_map/gid_map), so it requires no host privilege. Because an
unprivileged user namespace can only map a single id and must deny
setgroups, exactly one uid and one gid are representable (no supplementary
groups, no id ranges).
Parsed from UID:GID; both ids are required (no implicit default).
Fields§
§uid: u32§gid: u32Trait Implementations§
impl Copy for RunAs
Source§impl<'de> Deserialize<'de> for RunAs
impl<'de> Deserialize<'de> for RunAs
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 RunAs
impl StructuralPartialEq for RunAs
Auto Trait Implementations§
impl Freeze for RunAs
impl RefUnwindSafe for RunAs
impl Send for RunAs
impl Sync for RunAs
impl Unpin for RunAs
impl UnsafeUnpin for RunAs
impl UnwindSafe for RunAs
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.