Searched refs:spec_arr (Results 1 – 6 of 6) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_backends_android.c | 28 spec_t *spec_arr; member 56 struct spec *curr_spec, *spec_arr = data->spec_arr; in nodups_specs() local 59 curr_spec = &spec_arr[ii]; in nodups_specs() 61 if (!strcmp(spec_arr[jj].property_key, in nodups_specs() 63 if (strcmp(spec_arr[jj].lr.ctx_raw, in nodups_specs() 71 spec_arr[jj].lr.ctx_raw, in nodups_specs() 92 spec_t *spec_arr = data->spec_arr; in process_line() local 123 spec_arr[nspec].property_key = prop; in process_line() 124 spec_arr[nspec].lr.ctx_raw = context; in process_line() 127 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line() [all …]
|
D | label_x.c | 32 spec_t *spec_arr; member 64 data->spec_arr[data->nspec].type = SELABEL_X_PROP; in process_line() 66 data->spec_arr[data->nspec].type = SELABEL_X_EXT; in process_line() 68 data->spec_arr[data->nspec].type = SELABEL_X_CLIENT; in process_line() 70 data->spec_arr[data->nspec].type = SELABEL_X_EVENT; in process_line() 72 data->spec_arr[data->nspec].type = SELABEL_X_SELN; in process_line() 74 data->spec_arr[data->nspec].type = SELABEL_X_POLYPROP; in process_line() 76 data->spec_arr[data->nspec].type = SELABEL_X_POLYSELN; in process_line() 83 data->spec_arr[data->nspec].key = key; in process_line() 84 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line() [all …]
|
D | label_media.c | 30 spec_t *spec_arr; member 58 data->spec_arr[data->nspec].key = key; in process_line() 59 data->spec_arr[data->nspec].lr.ctx_raw = context; in process_line() 129 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init() 130 if (data->spec_arr == NULL) in init() 132 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init() 156 struct spec *spec, *spec_arr = data->spec_arr; in close() local 160 spec = &spec_arr[i]; in close() 166 if (spec_arr) in close() 167 free(spec_arr); in close() [all …]
|
D | label_file.h | 83 struct spec *spec_arr; member 142 specs = realloc(data->spec_arr, total_specs * sizeof(*specs)); in grow_specs() 151 data->spec_arr = specs; in grow_specs() 215 if (data->spec_arr[i].hasMetaChars) in sort_specs() 216 memcpy(&spec_copy[front++], &data->spec_arr[i], len); in sort_specs() 218 memcpy(&spec_copy[back--], &data->spec_arr[i], len); in sort_specs() 238 free(data->spec_arr); in sort_specs() 239 data->spec_arr = spec_copy; in sort_specs() 437 struct spec *spec_arr; in process_line() local 481 spec_arr = data->spec_arr; in process_line() [all …]
|
D | label_file.c | 66 struct spec *curr_spec, *spec_arr = data->spec_arr; in nodups_specs() local 69 curr_spec = &spec_arr[ii]; in nodups_specs() 71 if ((!strcmp(spec_arr[jj].regex_str, in nodups_specs() 73 && (!spec_arr[jj].mode || !curr_spec->mode in nodups_specs() 74 || spec_arr[jj].mode == curr_spec->mode)) { in nodups_specs() 77 if (strcmp(spec_arr[jj].lr.ctx_raw, in nodups_specs() 83 spec_arr[jj].lr.ctx_raw, in nodups_specs() 303 spec = &data->spec_arr[data->nspec]; in load_mmap() 862 spec = &data->spec_arr[i]; in closef() 880 if (data->spec_arr) in closef() [all …]
|
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 98 struct spec *specs = data->spec_arr; in write_binary_file() 248 struct spec *specs = data->spec_arr; in free_specs()
|