Lines Matching defs:ah

75 	adt_session_data_t *ah = NULL;
88 if (adt_start_session(&ah, NULL, ADT_USE_PROC_DATA) != 0) {
92 if (ah == NULL) {
93 __auditd_debug("ah is NULL\n");
96 adt_get_auid(ah, &auid);
102 adt_get_mask(ah, &mask);
114 adt_get_termid(ah, &tid);
132 adt_get_asid(ah, &asid);
134 (void) adt_end_session(ah);
158 static adt_session_data_t *ah = NULL; /* audit session handle */
176 adt_session_data_t *ah;
182 if (adt_start_session(&ah, NULL, 0) != 0) {
186 if (adt_set_user(ah, ADT_NO_AUDIT, ADT_NO_AUDIT, 0,
190 (void) adt_end_session(ah);
191 ah = NULL;
193 if (adt_set_proc(ah) != 0) {
197 (void) adt_end_session(ah);
401 * Exit ah = audit session established for audit_logout();
416 if (adt_start_session(&ah, NULL, ADT_USE_PROC_DATA) != 0) {
421 adt_get_auid(ah, &auid);
423 if (adt_set_user(ah, uid, gid, uid, gid, NULL,
426 (void) adt_end_session(ah);
427 ah = NULL;
432 if ((event = adt_alloc_event(ah, ADT_ssh)) == NULL) {
447 * Entry ah = audit session.
454 if ((event = adt_alloc_event(ah, ADT_logout)) == NULL) {
463 (void) adt_end_session(ah);
464 ah = NULL;
484 adt_session_data_t *ah = NULL;
518 if (adt_start_session(&ah, NULL, 0) != 0) {
527 __auditd_debug("%d/%d:%d-audit_fail+start_session() ah=%p\n",
528 getpid(), getuid(), geteuid(), (void *)ah);
529 if (adt_set_user(ah, uid, gid, uid, gid, tid, ADT_NEW) != 0) {
538 __auditd_debug("%d/%d:%d-audit_fail+set_user() ah=%p\n", getpid(),
539 getuid(), geteuid(), (void *)ah);
540 if ((event = adt_alloc_event(ah, ADT_ssh)) == NULL) {
554 __auditd_debug("%d/%d:%d-audit_fail+put_event() ah=%p\n", getpid(),
555 getuid(), geteuid(), (void *)ah);
559 (void) adt_end_session(ah);