Home
last modified time | relevance | path

Searched refs:fl_head (Results 1 – 2 of 2) sorted by relevance

/third_party/selinux/libselinux/src/
Dmatchpathcon.c188 static file_spec_t *fl_head; variable
203 if (!fl_head) { in matchpathcon_filespec_add()
204 fl_head = malloc(sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
205 if (!fl_head) in matchpathcon_filespec_add()
207 memset(fl_head, 0, sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
211 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in matchpathcon_filespec_add()
271 if (!fl_head) in matchpathcon_filespec_eval()
279 for (fl = fl_head[h].next; fl; fl = fl->next) { in matchpathcon_filespec_eval()
304 if (!fl_head) in matchpathcon_filespec_destroy()
308 fl = fl_head[h].next; in matchpathcon_filespec_destroy()
[all …]
Dselinux_restorecon.c429 static file_spec_t *fl_head; variable
447 if (!fl_head) { in filespec_add()
448 fl_head = calloc(HASH_BUCKETS, sizeof(file_spec_t)); in filespec_add()
449 if (!fl_head) in filespec_add()
454 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add()
534 if (!fl_head) in filespec_eval()
542 for (fl = fl_head[h].next; fl; fl = fl->next) in filespec_eval()
569 if (!fl_head) in filespec_destroy()
573 fl = fl_head[h].next; in filespec_destroy()
581 fl_head[h].next = NULL; in filespec_destroy()
[all …]