Lines Matching defs:names

952 static int set_to_names(struct policydb *pdb, int is_type, void *set, struct list *attr_list, char ***names, unsigned int *num_names)
957 *names = NULL;
976 *names = malloc(sizeof(char *));
977 if (!*names) {
982 *names[0] = attr_name;
989 static int ebitmap_to_names(struct ebitmap *map, char **vals_to_names, char ***names, unsigned int *num_names)
1008 *names = NULL;
1026 *names = name_arr;
1033 static int process_roleset(struct policydb *pdb, struct role_set *rs, struct list *attr_list, char ***names, unsigned int *num_names)
1037 *names = NULL;
1041 rc = set_to_names(pdb, 0, &rs->roles, attr_list, names, num_names);
1046 rc = ebitmap_to_names(&rs->roles, pdb->p_role_val_to_name, names, num_names);
1056 static int process_typeset(struct policydb *pdb, struct type_set *ts, struct list *attr_list, char ***names, unsigned int *num_names)
1060 *names = NULL;
1064 rc = set_to_names(pdb, 1, ts, attr_list, names, num_names);
1069 rc = ebitmap_to_names(&ts->types, pdb->p_type_val_to_name, names, num_names);
1079 static void names_destroy(char ***names, unsigned int *num_names)
1081 free(*names);
1082 *names = NULL;
1131 static int name_list_to_string(char **names, unsigned int num_names, char **string)
1133 // create a space separated string of the names
1141 if (__builtin_add_overflow(len, strlen(names[i]), &len)) {
1169 strpos = stpcpy(strpos, names[i]);
1723 char *names = NULL;
1792 rc = ebitmap_to_names(&expr->names, pdb->p_user_val_to_name, &name_list, &num_names);
1797 rc = ebitmap_to_names(&expr->names, pdb->p_role_val_to_name, &name_list, &num_names);
1803 names = strdup("NO_IDENTIFIER");
1804 if (!names) {
1809 rc = name_list_to_string(name_list, num_names, &names);
1816 len = strlen(op) + strlen(attr1) + strlen(names) + 2 + 2 + 1;
1827 rlen = snprintf(new_val, len, "(%s %s (%s))", op, attr1, names);
1829 rlen = snprintf(new_val, len, "(%s %s %s)", op, attr1, names);
1838 free(names);
1839 names = NULL;
1924 free(names);
2563 // get the sid names in the correct order (reverse from the isids
3977 // autogenerated names, like optionals and attributes, to prevent naming
3990 // CIL is more restrictive in module names than checkmodule. Convert bad