Lines Matching refs:tcontext
83 struct context *tcontext,
259 struct context *tcontext, in constraint_expr_eval() argument
293 val2 = tcontext->user; in constraint_expr_eval()
297 val2 = tcontext->type; in constraint_expr_eval()
301 val2 = tcontext->role; in constraint_expr_eval()
325 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
329 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
333 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
337 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
344 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
345 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
391 c = tcontext; in constraint_expr_eval()
450 struct context *tcontext, in security_dump_masked_av() argument
488 if (context_struct_to_string(policydb, tcontext, in security_dump_masked_av()
529 struct context *tcontext, in type_attribute_bounds_av() argument
534 struct context lo_tcontext, *tcontextp = tcontext; in type_attribute_bounds_av()
546 target = policydb->type_val_to_struct[tcontext->type - 1]; in type_attribute_bounds_av()
555 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
575 security_dump_masked_av(policydb, scontext, tcontext, in type_attribute_bounds_av()
610 struct context *tcontext, in context_struct_compute_av() argument
647 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av()
680 !constraint_expr_eval(policydb, scontext, tcontext, NULL, in context_struct_compute_av()
694 scontext->role != tcontext->role) { in context_struct_compute_av()
697 tcontext->role == ra->new_role) in context_struct_compute_av()
709 type_attribute_bounds_av(policydb, scontext, tcontext, in context_struct_compute_av()
1014 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1042 tcontext = sidtab_search(sidtab, tsid); in security_compute_xperms_decision()
1043 if (!tcontext) { in security_compute_xperms_decision()
1065 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision()
1110 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1133 tcontext = sidtab_search(sidtab, tsid); in security_compute_av()
1134 if (!tcontext) { in security_compute_av()
1146 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av()
1167 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1189 tcontext = sidtab_search(sidtab, tsid); in security_compute_av_user()
1190 if (!tcontext) { in security_compute_av_user()
1202 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av_user()
1708 struct context *scontext, *tcontext, newcontext; in security_compute_sid() local
1763 tcontext = &tentry->context; in security_compute_sid()
1773 newcontext.user = tcontext->user; in security_compute_sid()
1782 newcontext.user = tcontext->user; in security_compute_sid()
1790 newcontext.role = tcontext->role; in security_compute_sid()
1802 newcontext.type = tcontext->type; in security_compute_sid()
1809 newcontext.type = tcontext->type; in security_compute_sid()
1815 avkey.target_type = tcontext->type; in security_compute_sid()
1839 tcontext->type, tclass, objname); in security_compute_sid()
1847 .type = tcontext->type, in security_compute_sid()
1858 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in security_compute_sid()