#[repr(C)]pub struct es_event_su_t {
pub success: bool,
pub failure_message: es_string_token_t,
pub from_uid: uid_t,
pub from_username: es_string_token_t,
pub has_to_uid: bool,
pub to_uid: es_event_su_t_anon0,
pub to_username: es_string_token_t,
pub shell: es_string_token_t,
pub argc: usize,
pub argv: *mut es_string_token_t,
pub env_count: usize,
pub env: *mut es_string_token_t,
}macos_14_0_0 only.Expand description
Notification for a su policy decisions events.
This event type does not support caching (notify-only). Should always
emit on success but will only emit on security relevant failures. For example,
Endpoint Security clients will not get an event for su being passed invalid
command line arguments.
Fields§
§success: boolTrue iff su was successful.
failure_message: es_string_token_tOptional. If success is false, a failure message is contained in this field
from_uid: uid_tThe uid of the user who initiated the su
from_username: es_string_token_tThe name of the user who initiated the su
has_to_uid: boolTrue iff su was successful, Describes whether or not the to_uid is interpretable
to_uid: es_event_su_t_anon0Optional. If success, the user ID that is going to be substituted
to_username: es_string_token_tOptional. If success, the user name that is going to be substituted
shell: es_string_token_tOptional. If success, the shell is going to execute
argc: usizeThe length of argv
argv: *mut es_string_token_tIf success, the arguments are passed into to the shell
env_count: usizeThe length of env
env: *mut es_string_token_tIf success, list of environment variables that is going to be substituted