pub enum ValidateError {
Show 19 variants
InvalidMagic {
found_magic: u32,
},
InvalidSignatureLength {
found_length: u32,
},
InvalidSignature {
found_signature: Vec<u8>,
},
InvalidPolicyVersion {
found_policy_version: u32,
},
InvalidExtensibleBitmapItemSize {
found_size: u32,
},
MisalignedExtensibleBitmapHighBit {
found_size: u32,
found_high_bit: u32,
},
InvalidExtensibleBitmapHighBit {
found_size: u32,
found_high_bit: u32,
found_count: u32,
},
InvalidExtensibleBitmapCount {
found_count: u32,
},
ExtensibleBitmapNonZeroHighBitAndZeroCount,
MisalignedExtensibleBitmapItemStartBit {
found_start_bit: u32,
found_size: u32,
},
OutOfOrderExtensibleBitmapItems {
found_start_bit: u32,
min_start: u32,
},
ExtensibleBitmapItemOverflow {
found_items_end: u32,
found_high_bit: u32,
},
InvalidClassDefault {
value: u32,
},
InvalidClassDefaultRange {
value: u32,
},
MissingInitialSid {
initial_sid: InitialSid,
},
InvalidFsUseType {
value: u32,
},
NonOptionalIdIsZero,
NotImplemented,
UnknownId {
kind: &'static str,
id: String,
},
}
Expand description
Structured errors that may be encountered validating a binary policy.
Variants§
InvalidMagic
InvalidSignatureLength
InvalidSignature
InvalidPolicyVersion
InvalidExtensibleBitmapItemSize
MisalignedExtensibleBitmapHighBit
InvalidExtensibleBitmapHighBit
InvalidExtensibleBitmapCount
ExtensibleBitmapNonZeroHighBitAndZeroCount
MisalignedExtensibleBitmapItemStartBit
OutOfOrderExtensibleBitmapItems
ExtensibleBitmapItemOverflow
InvalidClassDefault
InvalidClassDefaultRange
MissingInitialSid
Fields
§
initial_sid: InitialSid
InvalidFsUseType
NonOptionalIdIsZero
NotImplemented
UnknownId
Trait Implementations§
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ValidateError
impl PartialEq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnwindSafe for ValidateError
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