Lines Matching defs:role
149 struct cil_role *role = node->data;
150 if (strcmp(role->datum.fqn, "object_r") != 0) {
274 fprintf(out, "%s:", DATUM(context->role)->fqn);
1485 struct cil_role *role;
1488 role = i1->data;
1489 if (strcmp(role->datum.fqn,"object_r") == 0)
1491 fprintf(out, "role %s;\n", role->datum.fqn);
1498 struct cil_role *role;
1503 role = i1->data;
1504 if (strcmp(role->datum.fqn,"object_r") == 0)
1506 if (role->types) {
1509 if (ebitmap_get_bit(role->types, type->value)) {
1511 fprintf(out, "role %s types { %s", role->datum.fqn, type->datum.fqn);
1530 struct cil_role *role;
1535 role = i1->data;
1536 if (strcmp(role->datum.fqn,"object_r") == 0)
1540 if (ebitmap_get_bit(attribute->roles, role->value)) {
1542 fprintf(out, "roleattribute %s %s", role->datum.fqn, attribute->datum.fqn);
1589 struct cil_role *role;
1597 role = i2->data;
1598 if (ebitmap_get_bit(user->roles, role->value)) {
1602 cil_list_append(roles, CIL_ROLE, role);
1612 role = i2->data;
1613 fprintf(out, " %s", role->datum.fqn);