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()
274 if (!fl_head) in matchpathcon_filespec_eval()
282 for (fl = fl_head[h].next; fl; fl = fl->next) { in matchpathcon_filespec_eval()
307 if (!fl_head) in matchpathcon_filespec_destroy()
311 fl = fl_head[h].next; in matchpathcon_filespec_destroy()
[all …]
Dselinux_restorecon.c426 static file_spec_t *fl_head; variable
443 if (!fl_head) { in filespec_add()
444 fl_head = calloc(HASH_BUCKETS, sizeof(file_spec_t)); in filespec_add()
445 if (!fl_head) in filespec_add()
450 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add()
529 if (!fl_head) in filespec_eval()
537 for (fl = fl_head[h].next; fl; fl = fl->next) in filespec_eval()
564 if (!fl_head) in filespec_destroy()
568 fl = fl_head[h].next; in filespec_destroy()
576 fl_head[h].next = NULL; in filespec_destroy()
[all …]