pub struct OverlayRules {
pub handled: u64,
pub file_rights: u64,
pub outside: Vec<(OwnedFd, u64)>,
pub workspace: u64,
pub inside: Vec<(PathBuf, u64, bool)>,
}Expand description
A Landlock rule set to build in a command’s namespace. Paths outside the workspace, which the overlay leaves as they are, are opened beforehand; those in it are opened there, as the overlay’s.
Fields§
§handled: u64The rights the rule set handles, and those that apply to a file.
file_rights: u64§outside: Vec<(OwnedFd, u64)>Opened outside the namespace: descriptors, held open until the task ends, with the rights beneath each.
workspace: u64The rights everywhere in the workspace, where writes reach the overlay and are judged as the task ends.
inside: Vec<(PathBuf, u64, bool)>Paths in the workspace with the rights beneath each, and whether to reach it through no link.
Trait Implementations§
Source§impl Debug for OverlayRules
impl Debug for OverlayRules
Auto Trait Implementations§
impl Freeze for OverlayRules
impl RefUnwindSafe for OverlayRules
impl Send for OverlayRules
impl Sync for OverlayRules
impl Unpin for OverlayRules
impl UnsafeUnpin for OverlayRules
impl UnwindSafe for OverlayRules
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