Lines Matching defs:internal
259 * The internal state structure for adt (adt_internal_state_t) uses
1046 adt_from_export_format(adt_internal_state_t *internal,
1061 if ((internal->as_check = head.ax_check) != ADT_VALID) {
1100 adrm_int32(&context, (int *)&(internal->as_euid), 1);
1101 adrm_int32(&context, (int *)&(internal->as_ruid), 1);
1102 adrm_int32(&context, (int *)&(internal->as_egid), 1);
1103 adrm_int32(&context, (int *)&(internal->as_rgid), 1);
1104 adrm_int32(&context, (int *)&(internal->as_info.ai_auid), 1);
1106 (int *)&(internal->as_info.ai_mask.am_success), 1);
1108 (int *)&(internal->as_info.ai_mask.am_failure), 1);
1110 (int *)&(internal->as_info.ai_termid.at_port), 1);
1112 (int *)&(internal->as_info.ai_termid.at_type), 1);
1114 (int *)&(internal->as_info.ai_termid.at_addr[0]), 4);
1115 adrm_int32(&context, (int *)&(internal->as_info.ai_asid), 1);
1116 adrm_int32(&context, (int *)&(internal->as_audit_state), 1);
1117 internal->as_pid = (pid_t)-1;
1118 internal->as_label = NULL;
1120 adrm_int32(&context, (int *)&(internal->as_euid), 1);
1121 adrm_int32(&context, (int *)&(internal->as_ruid), 1);
1122 adrm_int32(&context, (int *)&(internal->as_egid), 1);
1123 adrm_int32(&context, (int *)&(internal->as_rgid), 1);
1124 adrm_int32(&context, (int *)&(internal->as_info.ai_auid), 1);
1126 (int64_t *)&(internal->as_info.ai_mask.am_success), 2);
1128 (int *)&(internal->as_info.ai_termid.at_port), 1);
1130 (int *)&(internal->as_info.ai_termid.at_type), 1);
1132 (int *)&(internal->as_info.ai_termid.at_addr[0]), 4);
1133 adrm_int32(&context, (int *)&(internal->as_info.ai_asid), 1);
1134 adrm_int32(&context, (int *)&(internal->as_audit_state), 1);
1135 adrm_int32(&context, (int *)&(internal->as_pid), 1);
1141 if ((internal->as_label =
1147 m_label_free(internal->as_label);
1150 (void) memset(internal->as_label, 0, my_label_len);
1151 adrm_int32(&context, (int *)(internal->as_label),
1154 internal->as_label = NULL;
1170 adt_internal_state_t *internal)
1180 if (internal->as_label != NULL) {
1195 adrm_putint32(&context, (int *)&(internal->as_euid), 1);
1196 adrm_putint32(&context, (int *)&(internal->as_ruid), 1);
1197 adrm_putint32(&context, (int *)&(internal->as_egid), 1);
1198 adrm_putint32(&context, (int *)&(internal->as_rgid), 1);
1199 adrm_putint32(&context, (int *)&(internal->as_info.ai_auid), 1);
1201 (int64_t *)&(internal->as_info.ai_mask.am_success), 2);
1203 (int *)&(internal->as_info.ai_termid.at_port), 1);
1205 (int *)&(internal->as_info.ai_termid.at_type), 1);
1207 (int *)&(internal->as_info.ai_termid.at_addr[0]), 4);
1208 adrm_putint32(&context, (int *)&(internal->as_info.ai_asid), 1);
1209 adrm_putint32(&context, (int *)&(internal->as_audit_state), 1);
1210 adrm_putint32(&context, (int *)&(internal->as_pid), 1);
1212 if (internal->as_label != NULL) {
1214 adrm_putint32(&context, (int *)(internal->as_label),
1225 adrm_putint32(&context, (int *)&(internal->as_euid), 1);
1226 adrm_putint32(&context, (int *)&(internal->as_ruid), 1);
1227 adrm_putint32(&context, (int *)&(internal->as_egid), 1);
1228 adrm_putint32(&context, (int *)&(internal->as_rgid), 1);
1229 adrm_putint32(&context, (int *)&(internal->as_info.ai_auid), 1);
1230 mask = (uint32_t)(internal->as_info.ai_mask.am_success &
1233 mask = (uint32_t)(internal->as_info.ai_mask.am_failure &
1237 (int *)&(internal->as_info.ai_termid.at_port), 1);
1239 (int *)&(internal->as_info.ai_termid.at_type), 1);
1241 (int *)&(internal->as_info.ai_termid.at_addr[0]), 4);
1242 adrm_putint32(&context, (int *)&(internal->as_info.ai_asid), 1);
1243 adrm_putint32(&context, (int *)&(internal->as_audit_state), 1);
1278 adt_import(adt_internal_state_t *internal, const adt_export_data_t *external)
1283 int local_audit_state = internal->as_audit_state;
1285 if (adt_from_export_format(internal, external) < 1)
1299 if (!(internal->as_audit_state & AUC_DISABLED)) {
1300 if (adt_get_mask_from_user(internal->as_info.ai_auid,
1301 &(internal->as_info.ai_mask)))
1303 if (internal->as_info.ai_auid != internal->as_ruid) {
1304 if (adt_get_mask_from_user(internal->as_info.ai_auid,
1307 internal->as_info.ai_mask.am_success |=
1309 internal->as_info.ai_mask.am_failure |=
1313 internal->as_audit_state = local_audit_state;
1316 internal->as_info.ai_asid,
1317 internal->as_info.ai_asid));
1319 internal->as_have_user_data = ADT_HAVE_ALL;
1335 adt_export_session_data(const adt_session_data_t *internal,
1340 if ((internal != NULL) &&
1341 ((adt_internal_state_t *)internal)->as_label != NULL) {
1350 if (internal == NULL) {
1365 (adt_internal_state_t *)internal);