Lines Matching refs:tcontext
96 struct context *tcontext,
272 struct context *tcontext, in constraint_expr_eval() argument
306 val2 = tcontext->user; in constraint_expr_eval()
310 val2 = tcontext->type; in constraint_expr_eval()
314 val2 = tcontext->role; in constraint_expr_eval()
338 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
342 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
346 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
350 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
357 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
358 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
404 c = tcontext; in constraint_expr_eval()
463 struct context *tcontext, in security_dump_masked_av() argument
501 if (context_struct_to_string(policydb, tcontext, in security_dump_masked_av()
542 struct context *tcontext, in type_attribute_bounds_av() argument
547 struct context lo_tcontext, *tcontextp = tcontext; in type_attribute_bounds_av()
559 target = policydb->type_val_to_struct[tcontext->type - 1]; in type_attribute_bounds_av()
568 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
588 security_dump_masked_av(policydb, scontext, tcontext, in type_attribute_bounds_av()
621 struct context *tcontext, in context_struct_compute_av() argument
658 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av()
691 !constraint_expr_eval(policydb, scontext, tcontext, NULL, in context_struct_compute_av()
705 scontext->role != tcontext->role) { in context_struct_compute_av()
708 tcontext->role == ra->new_role) in context_struct_compute_av()
720 type_attribute_bounds_av(policydb, scontext, tcontext, in context_struct_compute_av()
1026 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1054 tcontext = sidtab_search(sidtab, tsid); in security_compute_xperms_decision()
1055 if (!tcontext) { in security_compute_xperms_decision()
1077 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision()
1123 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1146 tcontext = sidtab_search(sidtab, tsid); in security_compute_av()
1147 if (!tcontext) { in security_compute_av()
1159 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av()
1180 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1202 tcontext = sidtab_search(sidtab, tsid); in security_compute_av_user()
1203 if (!tcontext) { in security_compute_av_user()
1215 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av_user()
1737 struct context *scontext, *tcontext, newcontext; in security_compute_sid() local
1794 tcontext = &tentry->context; in security_compute_sid()
1804 newcontext.user = tcontext->user; in security_compute_sid()
1813 newcontext.user = tcontext->user; in security_compute_sid()
1821 newcontext.role = tcontext->role; in security_compute_sid()
1833 newcontext.type = tcontext->type; in security_compute_sid()
1840 newcontext.type = tcontext->type; in security_compute_sid()
1846 avkey.target_type = tcontext->type; in security_compute_sid()
1870 tcontext->type, tclass, objname); in security_compute_sid()
1878 .type = tcontext->type, in security_compute_sid()
1889 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in security_compute_sid()