Home | History | Annotate | Download | only in src

Lines Matching full:generated_attribute

850 /* generated_attribute is only set if a new attribute was generated in set_to_cil_attr */
851 static int typeset_to_names(struct policydb *pdb, struct type_set *ts, char ***names, uint32_t *num_names, char **generated_attribute)
860 *generated_attribute = *names[0];
873 /* generated_attribute is only set if a new attribute was generated in set_to_cil_attr */
874 static int roleset_to_names(struct policydb *pdb, struct role_set *rs, char ***names, uint32_t *num_names, char **generated_attribute)
883 *generated_attribute = *names[0];
899 char *generated_attribute = NULL;
902 rc = roleset_to_names(pdb, rs, type_names, num_type_names, &generated_attribute);
907 if (generated_attribute == NULL) {
912 rc = cil_print_attr_strs(indent, pdb, 0, &rs->roles, NULL, rs->flags, generated_attribute);
917 rc = cil_add_attr_to_list(attr_list, generated_attribute, 0, rs);
930 char *generated_attribute = NULL;
933 rc = typeset_to_names(pdb, ts, type_names, num_type_names, &generated_attribute);
938 if (generated_attribute == NULL) {
944 rc = cil_print_attr_strs(indent, pdb, 1, &ts->types, &ts->negset, ts->flags, generated_attribute);
949 rc = cil_add_attr_to_list(attr_list, generated_attribute, 1, ts);
1264 char *generated_attribute;
1268 generated_attribute = attr_list_node->attribute;
1269 if (generated_attribute == NULL) {
1275 rc = cil_print_attr_strs(indent, pdb, 1, &ts->types, &ts->negset, ts->flags, generated_attribute);
1281 rc = cil_print_attr_strs(indent, pdb, 0, &rs->roles, NULL, rs->flags, generated_attribute);