Lines Matching refs:filecon
244 cil_sort_init(&(*db)->filecon); in cil_db_init()
290 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy()
1439 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string()
1442 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1443 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1445 str_len += strlen(filecon->path_str); in cil_filecons_to_string()
1447 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string()
1480 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1481 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1484 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
1487 switch(filecon->type) { in cil_filecons_to_string()
2145 void cil_filecon_init(struct cil_filecon **filecon) in cil_filecon_init() argument
2147 *filecon = cil_malloc(sizeof(**filecon)); in cil_filecon_init()
2149 (*filecon)->path_str = NULL; in cil_filecon_init()
2150 (*filecon)->type = 0; in cil_filecon_init()
2151 (*filecon)->context_str = NULL; in cil_filecon_init()
2152 (*filecon)->context = NULL; in cil_filecon_init()