pub struct TrustedApplication {
pub path: String,
pub legacy_hash: [u8; 20],
pub requirement: Vec<u8>,
}Expand description
One application an ACL entry trusts.
The three fields are what macOS stores per trusted application. Only the
requirement is evaluated on current systems: zeroing legacy_hash and
re-signing the key blob leaves security reading the item, so an ACL written
here supplies zeros for it rather than inventing a value it cannot compute.
Fields§
§path: StringThe application’s path, as macOS records it.
legacy_hash: [u8; 20]Legacy CDSA code hash. Not the modern cdhash, and not derivable from it.
requirement: Vec<u8>The application’s designated requirement, magic and length header included — byte-identical to the blob in its own code signature.
Implementations§
Trait Implementations§
Source§impl Clone for TrustedApplication
impl Clone for TrustedApplication
Source§fn clone(&self) -> TrustedApplication
fn clone(&self) -> TrustedApplication
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 TrustedApplication
impl Debug for TrustedApplication
impl Eq for TrustedApplication
Source§impl PartialEq for TrustedApplication
impl PartialEq for TrustedApplication
impl StructuralPartialEq for TrustedApplication
Auto Trait Implementations§
impl Freeze for TrustedApplication
impl RefUnwindSafe for TrustedApplication
impl Send for TrustedApplication
impl Sync for TrustedApplication
impl Unpin for TrustedApplication
impl UnsafeUnpin for TrustedApplication
impl UnwindSafe for TrustedApplication
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