Lines Matching refs:tcontext

97 				      struct context *tcontext,
273 struct context *tcontext, in constraint_expr_eval() argument
307 val2 = tcontext->user; in constraint_expr_eval()
311 val2 = tcontext->type; in constraint_expr_eval()
315 val2 = tcontext->role; in constraint_expr_eval()
339 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
343 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
347 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
351 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
358 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
359 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
405 c = tcontext; in constraint_expr_eval()
463 struct context *tcontext, in security_dump_masked_av() argument
501 if (context_struct_to_string(tcontext, in security_dump_masked_av()
541 struct context *tcontext, in type_attribute_bounds_av() argument
557 tcontext->type - 1); in type_attribute_bounds_av()
567 tcontext, in type_attribute_bounds_av()
578 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
611 security_dump_masked_av(scontext, tcontext, in type_attribute_bounds_av()
621 struct context *tcontext, in context_struct_compute_av() argument
654 tattr = flex_array_get(policydb.type_attr_map_array, tcontext->type - 1); in context_struct_compute_av()
684 !constraint_expr_eval(scontext, tcontext, NULL, in context_struct_compute_av()
698 scontext->role != tcontext->role) { in context_struct_compute_av()
701 tcontext->role == ra->new_role) in context_struct_compute_av()
713 type_attribute_bounds_av(scontext, tcontext, in context_struct_compute_av()
719 struct context *tcontext, in security_validtrans_handle_fail() argument
729 if (context_struct_to_string(tcontext, &t, &tlen)) in security_validtrans_handle_fail()
750 struct context *tcontext; in security_validate_transition() local
787 tcontext = sidtab_search(&sidtab, tasksid); in security_validate_transition()
788 if (!tcontext) { in security_validate_transition()
797 if (!constraint_expr_eval(ocontext, ncontext, tcontext, in security_validate_transition()
800 tcontext, tclass); in security_validate_transition()
920 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
938 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av()
939 if (!tcontext) { in security_compute_av()
951 context_struct_compute_av(scontext, tcontext, tclass, avd); in security_compute_av()
966 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
984 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av_user()
985 if (!tcontext) { in security_compute_av_user()
997 context_struct_compute_av(scontext, tcontext, tclass, avd); in security_compute_av_user()
1333 struct context *tcontext, in compute_sid_handle_invalid_context() argument
1342 if (context_struct_to_string(tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
1385 struct context *scontext = NULL, *tcontext = NULL, newcontext; in security_compute_sid() local
1425 tcontext = sidtab_search(&sidtab, tsid); in security_compute_sid()
1426 if (!tcontext) { in security_compute_sid()
1442 newcontext.user = tcontext->user; in security_compute_sid()
1455 newcontext.type = tcontext->type; in security_compute_sid()
1460 avkey.target_type = tcontext->type; in security_compute_sid()
1484 tcontext->type, tclass, qstr); in security_compute_sid()
1493 roletr->type == tcontext->type) { in security_compute_sid()
1504 rc = mls_compute_sid(scontext, tcontext, tclass, specified, in security_compute_sid()
1512 tcontext, in security_compute_sid()