Lines Matching full:role
669 * Initialize the role table by implicitly adding role 'object_r'. If
677 role_datum_t *role;
679 role = calloc(1, sizeof(role_datum_t));
680 if (!role) {
690 rc = symtab_insert(p, SYM_ROLES, key, role,
693 &role->s.value);
696 if (role->s.value != OBJECT_R_VAL) {
706 free(role);
770 role_datum_t *role;
772 role = (role_datum_t *) datum;
775 ebitmap_destroy(&role->cache);
776 if (type_set_expand(&role->types, &role->cache, p, 1)) {
826 * of a class, role, or user are needed.
861 role_datum_t *role;
863 role = (role_datum_t *) datum;
865 if (!role->s.value || role->s.value > p->p_roles.nprim)
867 p->p_role_val_to_name[role->s.value - 1] = (char *)key;
868 p->role_val_to_struct[role->s.value - 1] = role;
1527 /* Further confine that a role attribute can't have the same
1528 * name as another regular role, and a role attribute can't
1614 int role_set_get_role(role_set_t * x, uint32_t role)
1619 if (ebitmap_get_bit(&x->roles, role - 1)) {
1854 c->role = le32_to_cpu(buf[1]);
2173 role_datum_t *role;
2178 role = calloc(1, sizeof(role_datum_t));
2179 if (!role)
2190 role->s.value = le32_to_cpu(buf[1]);
2192 role->bounds = le32_to_cpu(buf[2]);
2202 if (ebitmap_read(&role->dominates, fp))
2206 if (ebitmap_read(&role->types.types, fp))
2209 if (type_set_read(&role->types, fp))
2219 role->flavor = le32_to_cpu(buf[0]);
2221 if (ebitmap_read(&role->roles, fp))
2226 if (role->s.value != OBJECT_R_VAL) {
2227 ERR(fp->handle, "role %s has wrong value %d",
2228 OBJECT_R, role->s.value);
2229 role_destroy(key, role, NULL);
2232 role_destroy(key, role, NULL);
2236 if (hashtab_insert(h, key, role))
2242 role_destroy(key, role, NULL);
2366 tr->role = le32_to_cpu(buf[0]);
2406 ra->role = le32_to_cpu(buf[0]);