pub struct RuntimePolicy {
pub ca_certificates: bool,
pub tmp: bool,
pub passwd_group: bool,
pub nsswitch: bool,
pub tzdata: bool,
pub ld_so_cache: CachePolicy,
pub user: Option<UserSpec>,
pub includes: Vec<PathBuf>,
}Fields§
§ca_certificates: bool§tmp: bool§passwd_group: bool§nsswitch: bool§tzdata: bool§ld_so_cache: CachePolicyGenerated /etc/ld.so.cache. Not a preset choice: the planner decides
from the closure unless the caller overrides it.
user: Option<UserSpec>§includes: Vec<PathBuf>Implementations§
Source§impl RuntimePolicy
impl RuntimePolicy
Sourcepub const CA_BUNDLE_CANDIDATES: &'static [&'static str]
pub const CA_BUNDLE_CANDIDATES: &'static [&'static str]
Locations of a system CA bundle, most common first.
Sourcepub const NSS_MODULES: &'static [&'static str]
pub const NSS_MODULES: &'static [&'static str]
NSS modules that older glibc versions dlopen at runtime. Since glibc
2.34 these are built into libc.so.6, so they are included only if the
source root actually provides them.
pub fn from_preset(preset: Preset) -> RuntimePolicy
Sourcepub fn passwd_contents(&self) -> Vec<u8> ⓘ
pub fn passwd_contents(&self) -> Vec<u8> ⓘ
/etc/passwd with root, nobody and, unless it would duplicate one of
them, the requested user.
pub fn group_contents(&self) -> Vec<u8> ⓘ
Sourcepub fn nsswitch_contents(&self) -> Vec<u8> ⓘ
pub fn nsswitch_contents(&self) -> Vec<u8> ⓘ
/etc/nsswitch.conf. Without one, glibc falls back to a built-in
default that does not include DNS, and the application cannot resolve.
Trait Implementations§
Source§impl Clone for RuntimePolicy
impl Clone for RuntimePolicy
Source§fn clone(&self) -> RuntimePolicy
fn clone(&self) -> RuntimePolicy
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 RuntimePolicy
impl Debug for RuntimePolicy
Source§impl Default for RuntimePolicy
impl Default for RuntimePolicy
Source§fn default() -> RuntimePolicy
fn default() -> RuntimePolicy
Returns the “default value” for a type. Read more
impl Eq for RuntimePolicy
Source§impl PartialEq for RuntimePolicy
impl PartialEq for RuntimePolicy
impl StructuralPartialEq for RuntimePolicy
Auto Trait Implementations§
impl Freeze for RuntimePolicy
impl RefUnwindSafe for RuntimePolicy
impl Send for RuntimePolicy
impl Sync for RuntimePolicy
impl Unpin for RuntimePolicy
impl UnsafeUnpin for RuntimePolicy
impl UnwindSafe for RuntimePolicy
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.