Lines Matching refs:role

312 				val1 = scontext->role;  in constraint_expr_eval()
313 val2 = tcontext->role; in constraint_expr_eval()
414 val1 = c->role; in constraint_expr_eval()
696 scontext->role != tcontext->role) { in context_struct_compute_av()
698 if (scontext->role == ra->role && in context_struct_compute_av()
699 tcontext->role == ra->new_role) in context_struct_compute_av()
1029 *scontext_len += strlen(sym_name(&policydb, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1047 sym_name(&policydb, SYM_ROLES, context->role - 1), in context_struct_to_string()
1050 1 + strlen(sym_name(&policydb, SYM_ROLES, context->role - 1)) + in context_struct_to_string()
1149 struct role_datum *role; in string_to_context_struct() local
1188 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct()
1189 if (!role) in string_to_context_struct()
1191 ctx->role = role->value; in string_to_context_struct()
1460 newcontext.role = scontext->role; in security_compute_sid()
1464 newcontext.role = OBJECT_R_VAL; in security_compute_sid()
1501 if ((roletr->role == scontext->role) && in security_compute_sid()
1505 newcontext.role = roletr->new_role; in security_compute_sid()
1655 struct role_datum *role; in convert_context() local
1711 role = hashtab_search(args->newp->p_roles.table, in convert_context()
1712 sym_name(args->oldp, SYM_ROLES, c->role - 1)); in convert_context()
1713 if (!role) in convert_context()
1715 c->role = role->value; in convert_context()
2148 struct role_datum *role; in security_get_user_sids() local
2180 role = policydb.role_val_to_struct[i]; in security_get_user_sids()
2181 usercon.role = i + 1; in security_get_user_sids()
2182 ebitmap_for_each_positive_bit(&role->types, tnode, j) { in security_get_user_sids()
2538 newcon.role = context1->role; in security_sid_mls_copy()
2853 tmprule->au_ctxt.role = roledatum->value; in selinux_audit_rule_init()
2961 match = (ctxt->role == rule->au_ctxt.role); in selinux_audit_rule_match()
2964 match = (ctxt->role != rule->au_ctxt.role); in selinux_audit_rule_match()
3121 ctx_new.role = ctx->role; in security_netlbl_secattr_to_sid()