Lines Matching refs:tcontext

90 				      struct context *tcontext,
266 struct context *tcontext, in constraint_expr_eval() argument
300 val2 = tcontext->user; in constraint_expr_eval()
304 val2 = tcontext->type; in constraint_expr_eval()
308 val2 = tcontext->role; in constraint_expr_eval()
332 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
336 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
340 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
344 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
351 l1 = &(tcontext->range.level[0]); in constraint_expr_eval()
352 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
398 c = tcontext; in constraint_expr_eval()
457 struct context *tcontext, in security_dump_masked_av() argument
495 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()
613 struct context *tcontext, in context_struct_compute_av() argument
650 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in context_struct_compute_av()
683 !constraint_expr_eval(policydb, scontext, tcontext, NULL, in context_struct_compute_av()
697 scontext->role != tcontext->role) { in context_struct_compute_av()
700 tcontext->role == ra->new_role) in context_struct_compute_av()
712 type_attribute_bounds_av(policydb, scontext, tcontext, in context_struct_compute_av()
1010 struct context *scontext, *tcontext; in security_compute_xperms_decision() local
1038 tcontext = sidtab_search(sidtab, tsid); in security_compute_xperms_decision()
1039 if (!tcontext) { in security_compute_xperms_decision()
1061 tattr = &policydb->type_attr_map_array[tcontext->type - 1]; in security_compute_xperms_decision()
1105 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
1128 tcontext = sidtab_search(sidtab, tsid); in security_compute_av()
1129 if (!tcontext) { in security_compute_av()
1141 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av()
1161 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
1183 tcontext = sidtab_search(sidtab, tsid); in security_compute_av_user()
1184 if (!tcontext) { in security_compute_av_user()
1196 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd, in security_compute_av_user()
1706 struct context *scontext, *tcontext, newcontext; in security_compute_sid() local
1762 tcontext = &tentry->context; in security_compute_sid()
1772 newcontext.user = tcontext->user; in security_compute_sid()
1781 newcontext.user = tcontext->user; in security_compute_sid()
1789 newcontext.role = tcontext->role; in security_compute_sid()
1801 newcontext.type = tcontext->type; in security_compute_sid()
1808 newcontext.type = tcontext->type; in security_compute_sid()
1814 avkey.target_type = tcontext->type; in security_compute_sid()
1838 tcontext->type, tclass, objname); in security_compute_sid()
1846 .type = tcontext->type, in security_compute_sid()
1857 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified, in security_compute_sid()