Lines Matching refs:tcontext
96 struct context *tcontext,
264 struct context *tcontext, in constraint_expr_eval() argument
298 val2 = tcontext->user; in constraint_expr_eval()
302 val2 = tcontext->type; in constraint_expr_eval()
306 val2 = tcontext->role; in constraint_expr_eval()
330 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
334 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
338 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
342 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
349 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
350 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
396 c = tcontext; in constraint_expr_eval()
455 struct context *tcontext, in security_dump_masked_av() argument
493 if (context_struct_to_string(policydb, tcontext, in security_dump_masked_av()
534 struct context *tcontext, in type_attribute_bounds_av() argument
539 struct context lo_tcontext, *tcontextp = tcontext; in type_attribute_bounds_av()
551 target = policydb->type_val_to_struct[tcontext->type - 1]; in type_attribute_bounds_av()
560 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
580 security_dump_masked_av(policydb, scontext, tcontext, in type_attribute_bounds_av()
615 struct context *tcontext, in context_struct_compute_av() argument
652 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av()
685 !constraint_expr_eval(policydb, scontext, tcontext, NULL, in context_struct_compute_av()
699 scontext->role != tcontext->role) { in context_struct_compute_av()
702 tcontext->role == ra->new_role) in context_struct_compute_av()
714 type_attribute_bounds_av(policydb, scontext, tcontext, in context_struct_compute_av()
721 struct context *tcontext, in security_validtrans_handle_fail() argument
732 if (context_struct_to_string(p, tcontext, &t, &tlen)) in security_validtrans_handle_fail()
756 struct context *tcontext; in security_compute_validatetrans() local
798 tcontext = sidtab_search(sidtab, tasksid); in security_compute_validatetrans()
799 if (!tcontext) { in security_compute_validatetrans()
809 tcontext, constraint->expr)) { in security_compute_validatetrans()
816 tcontext, in security_compute_validatetrans()
1008 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1035 tcontext = sidtab_search(sidtab, tsid); in security_compute_xperms_decision()
1036 if (!tcontext) { in security_compute_xperms_decision()
1058 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision()
1102 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1124 tcontext = sidtab_search(sidtab, tsid); in security_compute_av()
1125 if (!tcontext) { in security_compute_av()
1137 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av()
1157 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1178 tcontext = sidtab_search(sidtab, tsid); in security_compute_av_user()
1179 if (!tcontext) { in security_compute_av_user()
1191 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av_user()
1631 struct context *tcontext, in compute_sid_handle_invalid_context() argument
1642 if (context_struct_to_string(policydb, tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
1701 struct context *scontext = NULL, *tcontext = NULL, newcontext; in security_compute_sid() local
1745 tcontext = sidtab_search(sidtab, tsid); in security_compute_sid()
1746 if (!tcontext) { in security_compute_sid()
1761 newcontext.user = tcontext->user; in security_compute_sid()
1770 newcontext.user = tcontext->user; in security_compute_sid()
1778 newcontext.role = tcontext->role; in security_compute_sid()
1790 newcontext.type = tcontext->type; in security_compute_sid()
1797 newcontext.type = tcontext->type; in security_compute_sid()
1803 avkey.target_type = tcontext->type; in security_compute_sid()
1827 tcontext->type, tclass, objname); in security_compute_sid()
1835 (roletr->type == tcontext->type) && in security_compute_sid()
1846 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in security_compute_sid()
1854 tcontext, in security_compute_sid()