Lines Matching refs:session_data
405 adt_load_table(const adt_session_data_t *session_data, in adt_load_table() argument
408 adt_internal_state_t *state = (adt_internal_state_t *)session_data; in adt_load_table()
435 adt_get_asid(const adt_session_data_t *session_data, au_asid_t *asid) in adt_get_asid() argument
438 if (session_data == NULL) { in adt_get_asid()
441 assert(((adt_internal_state_t *)session_data)->as_check == in adt_get_asid()
444 *asid = ((adt_internal_state_t *)session_data)->as_info.ai_asid; in adt_get_asid()
449 adt_set_asid(const adt_session_data_t *session_data, const au_asid_t session_id) in adt_set_asid() argument
452 if (session_data != NULL) { in adt_set_asid()
453 assert(((adt_internal_state_t *)session_data)->as_check == in adt_set_asid()
456 ((adt_internal_state_t *)session_data)->as_have_user_data |= in adt_set_asid()
458 ((adt_internal_state_t *)session_data)->as_info.ai_asid = in adt_set_asid()
474 adt_get_auid(const adt_session_data_t *session_data, au_id_t *auid) in adt_get_auid() argument
477 if (session_data == NULL) { in adt_get_auid()
480 assert(((adt_internal_state_t *)session_data)->as_check == in adt_get_auid()
483 *auid = ((adt_internal_state_t *)session_data)->as_info.ai_auid; in adt_get_auid()
488 adt_set_auid(const adt_session_data_t *session_data, const au_id_t audit_id) in adt_set_auid() argument
491 if (session_data != NULL) { in adt_set_auid()
492 assert(((adt_internal_state_t *)session_data)->as_check == in adt_set_auid()
495 ((adt_internal_state_t *)session_data)->as_have_user_data |= in adt_set_auid()
497 ((adt_internal_state_t *)session_data)->as_info.ai_auid = in adt_set_auid()
514 adt_get_termid(const adt_session_data_t *session_data, au_tid_addr_t *termid) in adt_get_termid() argument
517 if (session_data == NULL) { in adt_get_termid()
521 assert(((adt_internal_state_t *)session_data)->as_check == in adt_get_termid()
525 ((adt_internal_state_t *)session_data)->as_info.ai_termid; in adt_get_termid()
530 adt_set_termid(const adt_session_data_t *session_data, in adt_set_termid() argument
534 if (session_data != NULL) { in adt_set_termid()
535 assert(((adt_internal_state_t *)session_data)->as_check == in adt_set_termid()
538 ((adt_internal_state_t *)session_data)->as_info.ai_termid = in adt_set_termid()
541 ((adt_internal_state_t *)session_data)->as_have_user_data |= in adt_set_termid()
558 adt_get_mask(const adt_session_data_t *session_data, au_mask_t *mask) in adt_get_mask() argument
561 if (session_data == NULL) { in adt_get_mask()
565 assert(((adt_internal_state_t *)session_data)->as_check == in adt_get_mask()
568 *mask = ((adt_internal_state_t *)session_data)->as_info.ai_mask; in adt_get_mask()
573 adt_set_mask(const adt_session_data_t *session_data, const au_mask_t *mask) in adt_set_mask() argument
576 if (session_data != NULL) { in adt_set_mask()
577 assert(((adt_internal_state_t *)session_data)->as_check == in adt_set_mask()
580 ((adt_internal_state_t *)session_data)->as_info.ai_mask = *mask; in adt_set_mask()
582 ((adt_internal_state_t *)session_data)->as_have_user_data |= in adt_set_mask()
951 adt_get_session_id(const adt_session_data_t *session_data, char **buff) in adt_get_session_id() argument
968 if (session_data == NULL) { /* NULL is not an error */ in adt_get_session_id()
972 adt_get_asid(session_data, &session_id); in adt_get_session_id()
991 adt_end_session(adt_session_data_t *session_data) in adt_end_session() argument
995 if (session_data != NULL) { in adt_end_session()
996 state = (adt_internal_state_t *)session_data; in adt_end_session()
1002 free(session_data); in adt_end_session()
1492 adt_set_proc(const adt_session_data_t *session_data) in adt_set_proc() argument
1496 if (session_data == NULL) { in adt_set_proc()
1500 state = (adt_internal_state_t *)session_data; in adt_set_proc()
1607 adt_set_user(const adt_session_data_t *session_data, uid_t euid, gid_t egid, in adt_set_user() argument
1614 if (session_data == NULL) /* no session exists to audit */ in adt_set_user()
1617 state = (adt_internal_state_t *)session_data; in adt_set_user()
1706 adt_set_from_ucred(const adt_session_data_t *session_data, const ucred_t *uc, in adt_set_from_ucred() argument
1716 if (session_data == NULL) /* no session exists to audit */ in adt_set_from_ucred()
1719 state = (adt_internal_state_t *)session_data; in adt_set_from_ucred()
1793 *adt_alloc_event(const adt_session_data_t *session_data, au_event_t event_id) in adt_alloc_event() argument
1805 if (session_data != NULL) { in adt_alloc_event()
1806 session_state = (adt_internal_state_t *)session_data; in adt_alloc_event()
1816 event_state->ae_session = (struct adt_internal_state *)session_data; in adt_alloc_event()
1824 if (session_data != NULL) { in adt_alloc_event()