pub enum Authorization {
Tag35,
ItemAccess,
Tags(Vec<u32>),
}Expand description
The authorization tag sets that appear in keychain item ACLs.
These are CSSM_ACL_AUTHORIZATION_TAG values, and the CSSM headers that name
them are no longer shipped, so the variants are named for what macOS is
observed to do with them rather than decoded tag by tag. The distinction
matters: when an item names trusted applications, macOS restricts
Self::ItemAccess and leaves Self::Tag35 open, so it is ItemAccess
that gates use of the item.
Variants§
Tag35
Tag 35 alone. Left open to any application even on a restricted item.
ItemAccess
Tags 24, 28, 37, 38, 59, 115 — the set macOS restricts to the trusted
applications, and therefore the entry that governs the item.
Tags(Vec<u32>)
Any other tag set, kept as read.
Implementations§
Source§impl Authorization
impl Authorization
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
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 Authorization
impl Debug for Authorization
impl Eq for Authorization
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnsafeUnpin for Authorization
impl UnwindSafe for Authorization
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