Lines Matching refs:filecon
260 cil_sort_init(&(*db)->filecon); in cil_db_init()
313 cil_sort_destroy(&(*db)->filecon); in cil_db_destroy()
1527 struct cil_sort *filecons = db->filecon; in cil_filecons_to_string()
1530 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1531 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1533 str_len += strlen(filecon->path_str); in cil_filecons_to_string()
1535 if (filecon->type != CIL_FILECON_ANY) { in cil_filecons_to_string()
1568 struct cil_filecon *filecon = filecons->array[i]; in cil_filecons_to_string() local
1569 struct cil_context *ctx = filecon->context; in cil_filecons_to_string()
1572 buf_pos = sprintf(str_tmp, "%s", filecon->path_str); in cil_filecons_to_string()
1575 switch(filecon->type) { in cil_filecons_to_string()
2280 void cil_filecon_init(struct cil_filecon **filecon) in cil_filecon_init() argument
2282 *filecon = cil_malloc(sizeof(**filecon)); in cil_filecon_init()
2284 (*filecon)->path_str = NULL; in cil_filecon_init()
2285 (*filecon)->type = 0; in cil_filecon_init()
2286 (*filecon)->context_str = NULL; in cil_filecon_init()
2287 (*filecon)->context = NULL; in cil_filecon_init()