Lines Matching refs:tcontext
385 context_struct_t *tcontext, in constraint_expr_eval_reason() argument
514 val2 = tcontext->user; in constraint_expr_eval_reason()
520 val2 = tcontext->type; in constraint_expr_eval_reason()
526 val2 = tcontext->role; in constraint_expr_eval_reason()
555 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
561 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
567 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
573 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
584 l1 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
585 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
646 c = tcontext; in constraint_expr_eval_reason()
841 context_struct_t * tcontext,
850 context_struct_t *tcontext, in type_attribute_bounds_av() argument
857 context_struct_t lo_tcontext, *tcontextp = tcontext; in type_attribute_bounds_av()
867 target = policydb->type_val_to_struct[tcontext->type - 1]; in type_attribute_bounds_av()
875 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
906 context_struct_t * tcontext, in context_struct_compute_av() argument
947 tattr = &policydb->type_attr_map[tcontext->type - 1]; in context_struct_compute_av()
985 !constraint_expr_eval_reason(scontext, tcontext, NULL, in context_struct_compute_av()
1006 scontext->role != tcontext->role) { in context_struct_compute_av()
1009 tcontext->role == ra->new_role) in context_struct_compute_av()
1022 type_attribute_bounds_av(scontext, tcontext, tclass, requested, avd, in context_struct_compute_av()
1040 context_struct_t *tcontext; in sepol_validate_transition_reason_buffer() local
1062 tcontext = sepol_sidtab_search(sidtab, tasksid); in sepol_validate_transition_reason_buffer()
1063 if (!tcontext) { in sepol_validate_transition_reason_buffer()
1080 if (!constraint_expr_eval_reason(ocontext, ncontext, tcontext, in sepol_validate_transition_reason_buffer()
1096 context_struct_t *scontext = 0, *tcontext = 0; in sepol_compute_av_reason() local
1105 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_av_reason()
1106 if (!tcontext) { in sepol_compute_av_reason()
1112 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason()
1132 context_struct_t *scontext = 0, *tcontext = 0; in sepol_compute_av_reason_buffer() local
1141 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_av_reason_buffer()
1142 if (!tcontext) { in sepol_compute_av_reason_buffer()
1159 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason_buffer()
1304 tcontext, in compute_sid_handle_invalid_context()
1317 context_to_string(NULL, policydb, tcontext, &t, &tlen); in compute_sid_handle_invalid_context()
1335 context_struct_t *scontext = 0, *tcontext = 0, newcontext; in sepol_compute_sid() local
1348 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_sid()
1349 if (!tcontext) { in sepol_compute_sid()
1365 newcontext.user = tcontext->user; in sepol_compute_sid()
1374 newcontext.user = tcontext->user; in sepol_compute_sid()
1382 newcontext.role = tcontext->role; in sepol_compute_sid()
1394 newcontext.type = tcontext->type; in sepol_compute_sid()
1401 newcontext.type = tcontext->type; in sepol_compute_sid()
1407 avkey.target_type = tcontext->type; in sepol_compute_sid()
1435 roletr->type == tcontext->type && in sepol_compute_sid()
1446 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in sepol_compute_sid()
1454 tcontext, in sepol_compute_sid()