Searched refs:nspec (Results 1 – 9 of 9) sorted by relevance
/external/selinux/libselinux/src/ |
D | label_backends_android.c | 29 unsigned int nspec; /* total number of specifications */ member 58 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs() 60 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs() 93 unsigned int nspec = data->nspec; 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() 130 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line() 136 data->nspec = ++nspec; in process_line() 150 unsigned int nspec; in process_file() local [all …]
|
D | label_x.c | 31 unsigned int nspec; 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_file.h | 80 unsigned int nspec; member 132 if (data->nspec < data->alloc_specs) in grow_specs() 135 new_specs = data->nspec + 16; in grow_specs() 136 total_specs = data->nspec + new_specs; in grow_specs() 145 memset(&specs[data->nspec], 0, new_specs * sizeof(*specs)); in grow_specs() 203 spec_copy = malloc(len * data->nspec); in sort_specs() 209 back = data->nspec - 1; in sort_specs() 210 for (i = 0; i < data->nspec; i++) { in sort_specs() 222 back = data->nspec - 1; in sort_specs() 420 unsigned int nspec = data->nspec; in process_line() local [all …]
|
D | label_media.c | 29 unsigned int nspec; 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() 62 data->nspec++; in process_line() 116 data->nspec = 0; in init() 118 data->nspec < maxnspec) { in init() 125 if (data->nspec == 0) { in init() 129 data->spec_arr = malloc(sizeof(spec_t)*data->nspec); in init() 132 memset(data->spec_arr, 0, sizeof(spec_t)*data->nspec); in init() 133 maxnspec = data->nspec; in init() [all …]
|
D | label_db.c | 82 unsigned int nspec; /* number of specs in use */ member 94 spec_t *spec = &catalog->specs[catalog->nspec]; in process_line() 158 catalog->nspec++; in process_line() 181 for (i = 0; i < catalog->nspec; i++) { in db_close() 200 for (i = 0; i < catalog->nspec; i++) { in db_lookup() 226 for (i = 0; i < catalog->nspec; i++) in db_stats() 230 catalog->nspec, total); in db_stats() 256 catalog->nspec = 0; in db_init() 302 if (catalog->limit == catalog->nspec) { in db_init() 335 for (i = 0; i < catalog->nspec; i++) { in db_init()
|
D | label_file.c | 69 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs() 71 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs() 304 spec = &data->spec_arr[data->nspec]; in load_mmap() 398 data->nspec++; in load_mmap() 860 for (i = 0; i < data->nspec; i++) { in closef() 910 if (!data->nspec) { in lookup_common() 943 for (i = data->nspec - 1; i >= 0; i--) { in lookup_common() 1075 unsigned int i, nspec1 = data1->nspec, j, nspec2 = data2->nspec; in cmp() 1147 unsigned int i, nspec = data->nspec; in stats() local 1150 for (i = 0; i < nspec; i++) { in stats()
|
/external/elfutils/backends/ |
D | sparc_regs.c | 46 const int nspec = ebl->class == ELFCLASS32 ? 8 : 6; in sparc_register_info() local 49 return 32 + nfp + nspec; in sparc_register_info() 51 if (regno < 0 || regno >= 32 + nfp + nspec || namelen < 6) in sparc_register_info()
|
/external/selinux/libselinux/src/android/ |
D | android_platform.c | 416 static int nspec = 0; variable 425 for (n = 0; n < nspec; n++) in free_seapp_contexts() 430 nspec = 0; in free_seapp_contexts() 477 nspec = 0; in selinux_android_seapp_context_reload() 491 nspec++; in selinux_android_seapp_context_reload() 496 seapp_contexts = (struct seapp_context **) calloc(nspec, sizeof(struct seapp_context *)); in selinux_android_seapp_context_reload() 500 nspec = 0; in selinux_android_seapp_context_reload() 725 seapp_contexts[nspec] = cur; in selinux_android_seapp_context_reload() 726 nspec++; in selinux_android_seapp_context_reload() 733 qsort(seapp_contexts, nspec, sizeof(struct seapp_context *), in selinux_android_seapp_context_reload() [all …]
|
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 172 section_len = data->nspec; in write_binary_file() 249 unsigned int num_entries = data->nspec; in free_specs()
|