Home
last modified time | relevance | path

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

/external/selinux/libselinux/src/
Dmatchpathcon.c182 static file_spec_t *fl_head; variable
197 if (!fl_head) { in matchpathcon_filespec_add()
198 fl_head = malloc(sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
199 if (!fl_head) in matchpathcon_filespec_add()
201 memset(fl_head, 0, sizeof(file_spec_t) * HASH_BUCKETS); in matchpathcon_filespec_add()
205 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in matchpathcon_filespec_add()
268 if (!fl_head) in matchpathcon_filespec_eval()
276 for (fl = fl_head[h].next; fl; fl = fl->next) { in matchpathcon_filespec_eval()
301 if (!fl_head) in matchpathcon_filespec_destroy()
305 fl = fl_head[h].next; in matchpathcon_filespec_destroy()
[all …]
Dselinux_restorecon.c416 static file_spec_t *fl_head; variable
429 if (!fl_head) { in filespec_add()
430 fl_head = malloc(sizeof(file_spec_t) * HASH_BUCKETS); in filespec_add()
431 if (!fl_head) in filespec_add()
433 memset(fl_head, 0, sizeof(file_spec_t) * HASH_BUCKETS); in filespec_add()
437 for (prevfl = &fl_head[h], fl = fl_head[h].next; fl; in filespec_add()
500 if (!fl_head) in filespec_eval()
508 for (fl = fl_head[h].next; fl; fl = fl->next) in filespec_eval()
535 if (!fl_head) in filespec_destroy()
539 fl = fl_head[h].next; in filespec_destroy()
[all …]