Lines Matching defs:role
126 if (a->role != b->role) {
127 rc = strcmp(DATUM(a->role)->fqn, DATUM(b->role)->fqn);
608 struct cil_role *role = node->data;
609 if (role->datum.nodes->head->data == node) {
611 role->value = db->num_roles;
697 struct cil_role *role = node->data;
701 db->val_to_role[role->value] = role;
981 cil_log(CIL_ERR, "Failed to expand role attribute to bitmap\n");
1004 struct cil_role *role = (struct cil_role *)datum;
1005 if (ebitmap_set_bit(bitmap, role->value, 1)) {
1006 cil_log(CIL_ERR, "Failed to set role bit\n");
1602 static int __cil_role_assign_types(struct cil_role *role, struct cil_symtab_datum *datum)
1606 if (role->types == NULL) {
1607 role->types = cil_malloc(sizeof(*role->types));
1608 ebitmap_init(role->types);
1613 if (ebitmap_set_bit(role->types, type->value, 1)) {
1614 cil_log(CIL_INFO, "Failed to set bit in role types bitmap\n");
1620 if (ebitmap_set_bit(role->types, type->value, 1)) {
1621 cil_log(CIL_INFO, "Failed to set bit in role types bitmap\n");
1626 ebitmap_union(role->types, attr->types);
1654 struct cil_symtab_datum *role_datum = roletype->role;
1659 struct cil_roleattribute *attr = roletype->role;
1664 struct cil_role *role = NULL;
1666 role = db->val_to_role[i];
1668 rc = __cil_role_assign_types(role, type_datum);
1674 struct cil_role *role = roletype->role;
1676 rc = __cil_role_assign_types(role, type_datum);
1696 struct cil_role *role = NULL;
1705 role = (struct cil_role *)datum;
1706 if (ebitmap_set_bit(user->roles, role->value, 1)) {
1750 role_datum = userrole->role;