Lines Matching refs:tcontext
100 struct context *tcontext,
268 struct context *tcontext, in constraint_expr_eval() argument
302 val2 = tcontext->user; in constraint_expr_eval()
306 val2 = tcontext->type; in constraint_expr_eval()
310 val2 = tcontext->role; in constraint_expr_eval()
334 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
338 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
342 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
346 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
353 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
354 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
400 c = tcontext; in constraint_expr_eval()
459 struct context *tcontext, in security_dump_masked_av() argument
497 if (context_struct_to_string(policydb, tcontext, in security_dump_masked_av()
538 struct context *tcontext, in type_attribute_bounds_av() argument
543 struct context lo_tcontext, *tcontextp = tcontext; in type_attribute_bounds_av()
557 tcontext->type - 1); in type_attribute_bounds_av()
566 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
586 security_dump_masked_av(policydb, scontext, tcontext, in type_attribute_bounds_av()
621 struct context *tcontext, in context_struct_compute_av() argument
661 tcontext->type - 1); in context_struct_compute_av()
695 !constraint_expr_eval(policydb, scontext, tcontext, NULL, in context_struct_compute_av()
709 scontext->role != tcontext->role) { in context_struct_compute_av()
712 tcontext->role == ra->new_role) in context_struct_compute_av()
724 type_attribute_bounds_av(policydb, scontext, tcontext, in context_struct_compute_av()
731 struct context *tcontext, in security_validtrans_handle_fail() argument
742 if (context_struct_to_string(p, tcontext, &t, &tlen)) in security_validtrans_handle_fail()
766 struct context *tcontext; in security_compute_validatetrans() local
808 tcontext = sidtab_search(sidtab, tasksid); in security_compute_validatetrans()
809 if (!tcontext) { in security_compute_validatetrans()
819 tcontext, constraint->expr)) { in security_compute_validatetrans()
826 tcontext, in security_compute_validatetrans()
1019 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1046 tcontext = sidtab_search(sidtab, tsid); in security_compute_xperms_decision()
1047 if (!tcontext) { in security_compute_xperms_decision()
1072 tcontext->type - 1); in security_compute_xperms_decision()
1117 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1139 tcontext = sidtab_search(sidtab, tsid); in security_compute_av()
1140 if (!tcontext) { in security_compute_av()
1152 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av()
1172 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1193 tcontext = sidtab_search(sidtab, tsid); in security_compute_av_user()
1194 if (!tcontext) { in security_compute_av_user()
1206 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av_user()
1573 struct context *tcontext, in compute_sid_handle_invalid_context() argument
1583 if (context_struct_to_string(policydb, tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
1640 struct context *scontext = NULL, *tcontext = NULL, newcontext; in security_compute_sid() local
1684 tcontext = sidtab_search(sidtab, tsid); in security_compute_sid()
1685 if (!tcontext) { in security_compute_sid()
1700 newcontext.user = tcontext->user; in security_compute_sid()
1709 newcontext.user = tcontext->user; in security_compute_sid()
1717 newcontext.role = tcontext->role; in security_compute_sid()
1729 newcontext.type = tcontext->type; in security_compute_sid()
1736 newcontext.type = tcontext->type; in security_compute_sid()
1742 avkey.target_type = tcontext->type; in security_compute_sid()
1766 tcontext->type, tclass, objname); in security_compute_sid()
1774 (roletr->type == tcontext->type) && in security_compute_sid()
1785 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in security_compute_sid()
1793 tcontext, in security_compute_sid()