Skip to main content

es_event_tcc_modify_t

Struct es_event_tcc_modify_t 

Source
#[repr(C)]
pub struct es_event_tcc_modify_t { pub service: es_string_token_t, pub identity: es_string_token_t, pub identity_type: es_tcc_identity_type_t, pub update_type: es_tcc_event_type_t, pub instigator_token: audit_token_t, pub instigator: *mut es_process_t, pub responsible_token: *mut audit_token_t, pub responsible: *mut es_process_t, pub right: es_tcc_authorization_right_t, pub reason: es_tcc_authorization_reason_t, }
Available on macOS and crate feature macos_15_4_0 only.
Expand description

TCC Modification Event.

Occurs when a TCC permission is granted or revoked.

Note: This event type does not support caching.

Fields§

§service: es_string_token_t

The TCC service for which permissions are being modified.

§identity: es_string_token_t

The identity of the application that is the subject of the permission.

§identity_type: es_tcc_identity_type_t

The identity type of the application string (Bundle ID, path, etc).

§update_type: es_tcc_event_type_t

The type of TCC modification event (Grant/Revoke etc)

§instigator_token: audit_token_t

Audit token of the instigator of the modification.

§instigator: *mut es_process_t

(Optional) The process information for the instigator.

§responsible_token: *mut audit_token_t

(Optional) Audit token of the responsible process for the modification.

§responsible: *mut es_process_t

(Optional) The process information for the responsible process.

§right: es_tcc_authorization_right_t

The resulting TCC permission of the operation/modification.

§reason: es_tcc_authorization_reason_t

The reason the TCC permissions were updated.

Implementations§

Source§

impl es_event_tcc_modify_t

Accessors for *mut and *const fields

Source

pub unsafe fn instigator(&self) -> Option<&es_process_t>

Helper to avoid the is_null() + deref every time.

§Safety

The pointer must be valid (aligned & initialized) for a value of the expected type.

Source

pub unsafe fn responsible_token(&self) -> Option<&audit_token_t>

Helper to avoid the is_null() + deref every time.

§Safety

The pointer must be valid (aligned & initialized) for a value of the expected type.

Source

pub unsafe fn responsible(&self) -> Option<&es_process_t>

Helper to avoid the is_null() + deref every time.

§Safety

The pointer must be valid (aligned & initialized) for a value of the expected type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.