pub enum StickyBitPolicy {
Strict,
Warn,
Disabled,
}Expand description
Controls behavior when a parent directory is world-writable without the sticky bit.
On POSIX systems, a world-writable directory without the sticky bit allows any user to rename or delete files belonging to other users. This is a security risk for session working directories.
Variants§
Strict
Refuse to create the session if a parent directory is unsafe. This is the default — fail-closed is the secure choice.
Warn
Log a warning but allow the session to proceed.
Disabled
Skip the check entirely.
Trait Implementations§
Source§impl Clone for StickyBitPolicy
impl Clone for StickyBitPolicy
Source§fn clone(&self) -> StickyBitPolicy
fn clone(&self) -> StickyBitPolicy
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 StickyBitPolicy
impl Debug for StickyBitPolicy
Source§impl Default for StickyBitPolicy
impl Default for StickyBitPolicy
Source§fn default() -> StickyBitPolicy
fn default() -> StickyBitPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for StickyBitPolicy
impl PartialEq for StickyBitPolicy
Source§fn eq(&self, other: &StickyBitPolicy) -> bool
fn eq(&self, other: &StickyBitPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StickyBitPolicy
impl Eq for StickyBitPolicy
impl StructuralPartialEq for StickyBitPolicy
Auto Trait Implementations§
impl Freeze for StickyBitPolicy
impl RefUnwindSafe for StickyBitPolicy
impl Send for StickyBitPolicy
impl Sync for StickyBitPolicy
impl Unpin for StickyBitPolicy
impl UnsafeUnpin for StickyBitPolicy
impl UnwindSafe for StickyBitPolicy
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§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§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.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>
Converts
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>
Converts
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