pub struct ProcessCredentials { /* private fields */ }Expand description
Numeric credentials materialized before fork.
Account-name and group-database resolution belongs in the caller. The child applies supplementary groups first, then the primary GID, then the UID so privilege cannot be lost before group setup is complete.
Implementations§
Source§impl ProcessCredentials
impl ProcessCredentials
Sourcepub const fn new(
user: uid_t,
group: gid_t,
supplementary_groups: SupplementaryGroups,
) -> Self
pub const fn new( user: uid_t, group: gid_t, supplementary_groups: SupplementaryGroups, ) -> Self
Construct a numeric identity transition.
Sourcepub const fn supplementary_groups(&self) -> &SupplementaryGroups
pub const fn supplementary_groups(&self) -> &SupplementaryGroups
Return the requested supplementary-group behavior.
Trait Implementations§
Source§impl Clone for ProcessCredentials
impl Clone for ProcessCredentials
Source§fn clone(&self) -> ProcessCredentials
fn clone(&self) -> ProcessCredentials
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 ProcessCredentials
impl Debug for ProcessCredentials
impl Eq for ProcessCredentials
Source§impl PartialEq for ProcessCredentials
impl PartialEq for ProcessCredentials
impl StructuralPartialEq for ProcessCredentials
Auto Trait Implementations§
impl Freeze for ProcessCredentials
impl RefUnwindSafe for ProcessCredentials
impl Send for ProcessCredentials
impl Sync for ProcessCredentials
impl Unpin for ProcessCredentials
impl UnsafeUnpin for ProcessCredentials
impl UnwindSafe for ProcessCredentials
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