Home | History | Annotate | Download | only in src

Lines Matching defs:role

37 	role_datum_t *role;
44 if (!c->role || c->role > p->p_roles.nprim)
53 if (c->role != OBJECT_R_VAL) {
55 * Role must be authorized for the type.
57 role = p->role_val_to_struct[c->role - 1];
58 if (!ebitmap_get_bit(&role->cache, c->type - 1))
59 /* role may not be associated with type */
63 * User must be authorized for the role.
69 if (!ebitmap_get_bit(&usrdatum->cache, c->role - 1))
70 /* user may not be associated with role */
101 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1;
115 * Copy the user name, role name and type name into the context.
120 policydb->p_role_val_to_name[context->role - 1],
125 strlen(policydb->p_role_val_to_name[context->role - 1]) + 1 +
156 char *role = strdup(sepol_context_get_role(record));
161 if (!user || !role || !type || !scontext) {
176 /* Role */
178 (hashtab_key_t) role);
180 ERR(handle, "role %s is not defined", role);
183 scontext->role = roldatum->s.value;
211 user, role, type, mls);
215 user, role, type);
223 free(role);
234 free(role);
260 policydb->p_role_val_to_name[context->role -