Home
last modified time | relevance | path

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

/external/selinux/libselinux/src/
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_android_property.c29 unsigned int nspec; /* total number of specifications */ member
56 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
58 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
91 unsigned int nspec = data->nspec; in process_line() local
110 spec_arr[nspec].property_key = prop; in process_line()
111 spec_arr[nspec].lr.ctx_raw = context; in process_line()
114 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line()
117 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
124 data->nspec = ++nspec; in process_line()
168 data->nspec = 0; in init()
[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_file.h66 unsigned int nspec; member
122 if (data->nspec < data->alloc_specs) in grow_specs()
125 new_specs = data->nspec + 16; in grow_specs()
126 total_specs = data->nspec + new_specs; in grow_specs()
135 memset(&specs[data->nspec], 0, new_specs * sizeof(*specs)); in grow_specs()
193 spec_copy = malloc(len * data->nspec); in sort_specs()
199 back = data->nspec - 1; in sort_specs()
200 for (i = 0; i < data->nspec; i++) { in sort_specs()
212 back = data->nspec - 1; in sort_specs()
390 unsigned int nspec = data->nspec; in process_line() local
[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()
299 if (catalog->limit == catalog->nspec) { in db_init()
332 for (i = 0; i < catalog->nspec; i++) { in db_init()
Dlabel_file.c71 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
73 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
279 spec = &data->spec_arr[data->nspec]; in load_mmap()
405 data->nspec++; in load_mmap()
601 for (i = 0; i < data->nspec; i++) { in closef()
652 if (!data->nspec) { in lookup_common()
684 for (i = data->nspec - 1; i >= 0; i--) { in lookup_common()
821 unsigned int i, nspec1 = data1->nspec, j, nspec2 = data2->nspec; in cmp()
900 unsigned int i, nspec = data->nspec; in stats() local
903 for (i = 0; i < nspec; i++) { in stats()
/external/libselinux/src/
Dlabel_android_property.c29 unsigned int nspec; /* total number of specifications */ member
56 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
58 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
91 unsigned int nspec = data->nspec; in process_line() local
121 spec_arr[nspec].property_key = prop; in process_line()
122 spec_arr[nspec].lr.ctx_raw = context; in process_line()
125 if (selabel_validate(rec, &spec_arr[nspec].lr) < 0) { in process_line()
128 path, lineno, spec_arr[nspec].lr.ctx_raw); in process_line()
135 data->nspec = ++nspec; in process_line()
179 data->nspec = 0; in init()
[all …]
Dlabel_file.h69 unsigned int nspec; member
125 if (data->nspec < data->alloc_specs) in grow_specs()
128 new_specs = data->nspec + 16; in grow_specs()
129 total_specs = data->nspec + new_specs; in grow_specs()
138 memset(&specs[data->nspec], 0, new_specs * sizeof(*specs)); in grow_specs()
196 spec_copy = malloc(len * data->nspec); in sort_specs()
202 back = data->nspec - 1; in sort_specs()
203 for (i = 0; i < data->nspec; i++) { in sort_specs()
215 back = data->nspec - 1; in sort_specs()
393 unsigned int nspec = data->nspec; in process_line() local
[all …]
Dlabel_file.c70 for (ii = 0; ii < data->nspec; ii++) { in nodups_specs()
72 for (jj = ii + 1; jj < data->nspec; jj++) { in nodups_specs()
277 spec = &data->spec_arr[data->nspec]; in load_mmap()
403 data->nspec++; in load_mmap()
564 for (i = 0; i < data->nspec; i++) { in closef()
615 if (!data->nspec) { in lookup_common()
647 for (i = data->nspec - 1; i >= 0; i--) { in lookup_common()
784 unsigned int i, nspec1 = data1->nspec, j, nspec2 = data2->nspec; in cmp()
863 unsigned int i, nspec = data->nspec; in stats() local
866 for (i = 0; i < nspec; i++) { in stats()
Dandroid.c314 static int nspec = 0; variable
323 for (n = 0; n < nspec; n++) in free_seapp_contexts()
328 nspec = 0; in free_seapp_contexts()
352 nspec = 0; in selinux_android_seapp_context_reload()
359 nspec++; in selinux_android_seapp_context_reload()
362 seapp_contexts = (struct seapp_context **) calloc(nspec, sizeof(struct seapp_context *)); in selinux_android_seapp_context_reload()
367 nspec = 0; in selinux_android_seapp_context_reload()
568 seapp_contexts[nspec] = cur; in selinux_android_seapp_context_reload()
569 nspec++; in selinux_android_seapp_context_reload()
573 qsort(seapp_contexts, nspec, sizeof(struct seapp_context *), in selinux_android_seapp_context_reload()
[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/libselinux/utils/
Dsefcontext_compile.c136 section_len = data->nspec; in write_binary_file()
242 unsigned int num_entries = data->nspec; in free_specs()
/external/selinux/libselinux/utils/
Dsefcontext_compile.c154 section_len = data->nspec; in write_binary_file()
260 unsigned int num_entries = data->nspec; in free_specs()