pub enum LandlockStatus {
NotEnabled,
NotImplemented,
Available(ABI, Option<i32>),
}Expand description
Status of Landlock support for the running system.
This enum is used to represent the status of the Landlock support for the system where the code is executed. It can indicate whether Landlock is available or not.
§Warning
Sandboxed programs should only use this data to log or provide information to users,
not to change their behavior according to this status. Indeed, the Ruleset and the other
types are designed to handle the compatibility in a simple and safe way.
Variants§
NotEnabled
Landlock is supported but not enabled (EOPNOTSUPP).
NotImplemented
Landlock is not implemented (i.e. not built into the running kernel: ENOSYS).
Available(ABI, Option<i32>)
Landlock is available and supported up to the given ABI.
Option<i32> contains the raw ABI value if it’s greater than the greatest known ABI,
which would mean that the running kernel is newer than the Landlock crate.
Trait Implementations§
Source§impl Clone for LandlockStatus
impl Clone for LandlockStatus
Source§fn clone(&self) -> LandlockStatus
fn clone(&self) -> LandlockStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more