Lines Matching refs:tcontext

94 				      struct context *tcontext,
264 * tcontext is the context after the transition, and xcontext is the context
270 struct context *tcontext,
304 val2 = tcontext->user;
308 val2 = tcontext->type;
312 val2 = tcontext->role;
336 l2 = &(tcontext->range.level[0]);
340 l2 = &(tcontext->range.level[1]);
344 l2 = &(tcontext->range.level[0]);
348 l2 = &(tcontext->range.level[1]);
355 l1 = &(tcontext->range.level[0]);
356 l2 = &(tcontext->range.level[1]);
402 c = tcontext;
461 struct context *tcontext,
494 /* get scontext/tcontext in text form */
499 if (context_struct_to_string(policydb, tcontext,
510 "scontext=%s tcontext=%s tclass=%s perms=",
527 /* release scontext/tcontext */
540 struct context *tcontext,
545 struct context lo_tcontext, *tcontextp = tcontext;
557 target = policydb->type_val_to_struct[tcontext->type - 1];
566 memcpy(&lo_tcontext, tcontext, sizeof(lo_tcontext));
586 security_dump_masked_av(policydb, scontext, tcontext,
621 struct context *tcontext,
658 tattr = &policydb->type_attr_map_array[tcontext->type - 1];
691 !constraint_expr_eval(policydb, scontext, tcontext, NULL,
705 scontext->role != tcontext->role) {
708 tcontext->role == ra->new_role)
720 type_attribute_bounds_av(policydb, scontext, tcontext,
1025 struct context *scontext, *tcontext;
1053 tcontext = sidtab_search(sidtab, tsid);
1054 if (!tcontext) {
1076 tattr = &policydb->type_attr_map_array[tcontext->type - 1];
1121 struct context *scontext = NULL, *tcontext = NULL;
1144 tcontext = sidtab_search(sidtab, tsid);
1145 if (!tcontext) {
1157 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd,
1178 struct context *scontext = NULL, *tcontext = NULL;
1200 tcontext = sidtab_search(sidtab, tsid);
1201 if (!tcontext) {
1213 context_struct_compute_av(policydb, scontext, tcontext, tclass, avd,
1674 audit_log_format(ab, " scontext=%s tcontext=%s tclass=%s",
1729 struct context *scontext, *tcontext, newcontext;
1786 tcontext = &tentry->context;
1796 newcontext.user = tcontext->user;
1805 newcontext.user = tcontext->user;
1813 newcontext.role = tcontext->role;
1825 newcontext.type = tcontext->type;
1832 newcontext.type = tcontext->type;
1838 avkey.target_type = tcontext->type;
1862 tcontext->type, tclass, objname);
1870 .type = tcontext->type,
1881 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified,