Home
last modified time | relevance | path

Searched refs:nspec (Results 1 – 9 of 9) sorted by relevance

/external/selinux/libselinux/src/
Dlabel_backends_android.c29 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 …]
Dlabel_x.c31 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 …]
Dlabel_file.h84 unsigned int nspec; member
136 if (data->nspec < data->alloc_specs) in grow_specs()
139 new_specs = data->nspec + 16; in grow_specs()
140 total_specs = data->nspec + new_specs; in grow_specs()
149 memset(&specs[data->nspec], 0, new_specs * sizeof(*specs)); in grow_specs()
207 spec_copy = malloc(len * data->nspec); in sort_specs()
213 back = data->nspec - 1; in sort_specs()
214 for (i = 0; i < data->nspec; i++) { in sort_specs()
226 back = data->nspec - 1; in sort_specs()
438 unsigned int nspec = data->nspec; in process_line() local
[all …]
Dlabel_media.c29 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 …]
Dlabel_db.c82 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()
304 if (catalog->limit == catalog->nspec) { in db_init()
337 for (i = 0; i < catalog->nspec; i++) { in db_init()
Dlabel_file.c68 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
70 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
303 spec = &data->spec_arr[data->nspec]; in load_mmap()
399 data->nspec++; in load_mmap()
861 for (i = 0; i < data->nspec; i++) { in closef()
916 result = calloc(data->nspec, sizeof(struct spec*)); in lookup_all()
922 data->nspec * sizeof(struct spec*)); in lookup_all()
926 if (!data->nspec) { in lookup_all()
958 for (i = data->nspec - 1; i >= 0; i--) { in lookup_all()
1197 unsigned int i, nspec1 = data1->nspec, j, nspec2 = data2->nspec; in cmp()
[all …]
/external/elfutils/backends/
Dsparc_regs.c46 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/
Dandroid_platform.c314 static int nspec = 0; variable
323 for (n = 0; n < nspec; n++) in free_seapp_contexts()
328 nspec = 0; in free_seapp_contexts()
387 nspec = 0; in selinux_android_seapp_context_reload()
401 nspec++; in selinux_android_seapp_context_reload()
406 seapp_contexts = (struct seapp_context **) calloc(nspec, sizeof(struct seapp_context *)); in selinux_android_seapp_context_reload()
410 nspec = 0; in selinux_android_seapp_context_reload()
638 seapp_contexts[nspec] = cur; in selinux_android_seapp_context_reload()
639 nspec++; in selinux_android_seapp_context_reload()
646 qsort(seapp_contexts, nspec, sizeof(struct seapp_context *), in selinux_android_seapp_context_reload()
[all …]
/external/selinux/libselinux/utils/
Dsefcontext_compile.c172 section_len = data->nspec; in write_binary_file()
249 unsigned int num_entries = data->nspec; in free_specs()