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()
462 struct context *tcontext, in security_dump_masked_av() argument
500 if (context_struct_to_string(tcontext, in security_dump_masked_av()
540 struct context *tcontext, in type_attribute_bounds_av() argument
556 tcontext->type - 1); in type_attribute_bounds_av()
566 tcontext, in type_attribute_bounds_av()
577 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext)); in type_attribute_bounds_av()
610 security_dump_masked_av(scontext, tcontext, in type_attribute_bounds_av()
620 struct context *tcontext, in context_struct_compute_av() argument
653 tattr = flex_array_get(policydb.type_attr_map_array, tcontext->type - 1); in context_struct_compute_av()
683 !constraint_expr_eval(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(scontext, tcontext, in context_struct_compute_av()
718 struct context *tcontext, in security_validtrans_handle_fail() argument
728 if (context_struct_to_string(tcontext, &t, &tlen)) in security_validtrans_handle_fail()
749 struct context *tcontext; in security_validate_transition() local
786 tcontext = sidtab_search(&sidtab, tasksid); in security_validate_transition()
787 if (!tcontext) { in security_validate_transition()
796 if (!constraint_expr_eval(ocontext, ncontext, tcontext, in security_validate_transition()
799 tcontext, tclass); in security_validate_transition()
919 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av() local
937 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av()
938 if (!tcontext) { in security_compute_av()
950 context_struct_compute_av(scontext, tcontext, tclass, avd); in security_compute_av()
965 struct context *scontext = NULL, *tcontext = NULL; in security_compute_av_user() local
983 tcontext = sidtab_search(&sidtab, tsid); in security_compute_av_user()
984 if (!tcontext) { in security_compute_av_user()
996 context_struct_compute_av(scontext, tcontext, tclass, avd); in security_compute_av_user()
1340 struct context *tcontext, in compute_sid_handle_invalid_context() argument
1349 if (context_struct_to_string(tcontext, &t, &tlen)) in compute_sid_handle_invalid_context()
1402 struct context *scontext = NULL, *tcontext = NULL, newcontext; in security_compute_sid() local
1442 tcontext = sidtab_search(&sidtab, tsid); in security_compute_sid()
1443 if (!tcontext) { in security_compute_sid()
1458 newcontext.user = tcontext->user; in security_compute_sid()
1467 newcontext.user = tcontext->user; in security_compute_sid()
1475 newcontext.role = tcontext->role; in security_compute_sid()
1487 newcontext.type = tcontext->type; in security_compute_sid()
1494 newcontext.type = tcontext->type; in security_compute_sid()
1500 avkey.target_type = tcontext->type; in security_compute_sid()
1524 tcontext->type, tclass, objname); in security_compute_sid()
1531 (roletr->type == tcontext->type) && in security_compute_sid()
1542 rc = mls_compute_sid(scontext, tcontext, tclass, specified, in security_compute_sid()
1550 tcontext, in security_compute_sid()