Lines Matching refs:tcontext
386 context_struct_t *tcontext, in constraint_expr_eval_reason() argument
497 val2 = tcontext->user; in constraint_expr_eval_reason()
503 val2 = tcontext->type; in constraint_expr_eval_reason()
509 val2 = tcontext->role; in constraint_expr_eval_reason()
538 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
544 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
550 l2 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
556 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
567 l1 = &(tcontext->range.level[0]); in constraint_expr_eval_reason()
568 l2 = &(tcontext->range.level[1]); in constraint_expr_eval_reason()
629 c = tcontext; in constraint_expr_eval_reason()
832 context_struct_t * tcontext, in context_struct_compute_av() argument
872 tattr = &policydb->type_attr_map[tcontext->type - 1]; in context_struct_compute_av()
913 !constraint_expr_eval_reason(scontext, tcontext, NULL, in context_struct_compute_av()
933 scontext->role != tcontext->role) { in context_struct_compute_av()
936 tcontext->role == ra->new_role) in context_struct_compute_av()
959 context_struct_t *tcontext; in sepol_validate_transition() local
981 tcontext = sepol_sidtab_search(sidtab, tasksid); in sepol_validate_transition()
982 if (!tcontext) { in sepol_validate_transition()
989 if (!constraint_expr_eval_reason(ocontext, ncontext, tcontext, in sepol_validate_transition()
1012 context_struct_t *tcontext; in sepol_validate_transition_reason_buffer() local
1034 tcontext = sepol_sidtab_search(sidtab, tasksid); in sepol_validate_transition_reason_buffer()
1035 if (!tcontext) { in sepol_validate_transition_reason_buffer()
1052 if (!constraint_expr_eval_reason(ocontext, ncontext, tcontext, in sepol_validate_transition_reason_buffer()
1068 context_struct_t *scontext = 0, *tcontext = 0; in sepol_compute_av_reason() local
1077 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_av_reason()
1078 if (!tcontext) { in sepol_compute_av_reason()
1084 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason()
1104 context_struct_t *scontext = 0, *tcontext = 0; in sepol_compute_av_reason_buffer() local
1113 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_av_reason_buffer()
1114 if (!tcontext) { in sepol_compute_av_reason_buffer()
1131 rc = context_struct_compute_av(scontext, tcontext, tclass, in sepol_compute_av_reason_buffer()
1274 tcontext, in compute_sid_handle_invalid_context()
1287 context_to_string(NULL, policydb, tcontext, &t, &tlen); in compute_sid_handle_invalid_context()
1304 context_struct_t *scontext = 0, *tcontext = 0, newcontext; in sepol_compute_sid() local
1317 tcontext = sepol_sidtab_search(sidtab, tsid); in sepol_compute_sid()
1318 if (!tcontext) { in sepol_compute_sid()
1335 newcontext.user = tcontext->user; in sepol_compute_sid()
1350 newcontext.type = tcontext->type; in sepol_compute_sid()
1355 avkey.target_type = tcontext->type; in sepol_compute_sid()
1385 roletr->type == tcontext->type) { in sepol_compute_sid()
1399 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in sepol_compute_sid()
1407 tcontext, in sepol_compute_sid()