Lines Matching refs:tcontext

96 					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()
579 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
614 security_dump_masked_av(scontext, tcontext, in type_attribute_bounds_av()
649 struct context *tcontext, in context_struct_compute_av() argument
687 tattr = flex_array_get(policydb.type_attr_map_array, tcontext->type - 1); in context_struct_compute_av()
720 !constraint_expr_eval(scontext, tcontext, NULL, in context_struct_compute_av()
734 scontext->role != tcontext->role) { in context_struct_compute_av()
737 tcontext->role == ra->new_role) in context_struct_compute_av()
749 type_attribute_bounds_av(scontext, tcontext, in context_struct_compute_av()
755 struct context *tcontext, in security_validtrans_handle_fail() argument
765 if (context_struct_to_string(tcontext, &t, &tlen)) in security_validtrans_handle_fail()
786 struct context *tcontext; in security_validate_transition() local
823 tcontext = sidtab_search(&sidtab, tasksid); in security_validate_transition()
824 if (!tcontext) { in security_validate_transition()
833 if (!constraint_expr_eval(ocontext, ncontext, tcontext, in security_validate_transition()
836 tcontext, tclass); in security_validate_transition()
1000 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1024 tcontext = sidtab_search(&sidtab, tsid); in security_compute_xperms_decision()
1025 if (!tcontext) { in security_compute_xperms_decision()
1050 tcontext->type - 1); in security_compute_xperms_decision()
1091 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1110 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av()
1111 if (!tcontext) { in security_compute_av()
1123 context_struct_compute_av(scontext, tcontext, tclass, avd, xperms); in security_compute_av()
1138 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1156 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av_user()
1157 if (!tcontext) { in security_compute_av_user()
1169 context_struct_compute_av(scontext, tcontext, tclass, avd, NULL); in security_compute_av_user()
1515 struct context *tcontext, in compute_sid_handle_invalid_context() argument
1524 if (context_struct_to_string(tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
1577 struct context *scontext = NULL, *tcontext = NULL, newcontext; in security_compute_sid() local
1617 tcontext = sidtab_search(&sidtab, tsid); in security_compute_sid()
1618 if (!tcontext) { in security_compute_sid()
1633 newcontext.user = tcontext->user; in security_compute_sid()
1642 newcontext.user = tcontext->user; in security_compute_sid()
1650 newcontext.role = tcontext->role; in security_compute_sid()
1662 newcontext.type = tcontext->type; in security_compute_sid()
1669 newcontext.type = tcontext->type; in security_compute_sid()
1675 avkey.target_type = tcontext->type; in security_compute_sid()
1699 tcontext->type, tclass, objname); in security_compute_sid()
1706 (roletr->type == tcontext->type) && in security_compute_sid()
1717 rc = mls_compute_sid(scontext, tcontext, tclass, specified, in security_compute_sid()
1725 tcontext, in security_compute_sid()