Lines Matching refs:filecon
253 cil_sort_init(&(*db)->filecon); in cil_db_init()
302 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy()
1486 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string()
1489 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1490 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1492 str_len += strlen(filecon->path_str); in cil_filecons_to_string()
1494 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string()
1527 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1528 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1531 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
1534 switch(filecon->type) { in cil_filecons_to_string()
2205 void cil_filecon_init(struct cil_filecon **filecon) in cil_filecon_init() argument
2207 *filecon = cil_malloc(sizeof(**filecon)); in cil_filecon_init()
2209 (*filecon)->path_str = NULL; in cil_filecon_init()
2210 (*filecon)->type = 0; in cil_filecon_init()
2211 (*filecon)->context_str = NULL; in cil_filecon_init()
2212 (*filecon)->context = NULL; in cil_filecon_init()