Lines Matching refs:filecon
4154 struct cil_filecon *filecon = NULL; in cil_gen_filecon() local
4167 cil_filecon_init(&filecon); in cil_gen_filecon()
4169 filecon->path_str = parse_current->next->data; in cil_gen_filecon()
4172 filecon->type = CIL_FILECON_FILE; in cil_gen_filecon()
4174 filecon->type = CIL_FILECON_DIR; in cil_gen_filecon()
4176 filecon->type = CIL_FILECON_CHAR; in cil_gen_filecon()
4178 filecon->type = CIL_FILECON_BLOCK; in cil_gen_filecon()
4180 filecon->type = CIL_FILECON_SOCKET; in cil_gen_filecon()
4182 filecon->type = CIL_FILECON_PIPE; in cil_gen_filecon()
4184 filecon->type = CIL_FILECON_SYMLINK; in cil_gen_filecon()
4186 filecon->type = CIL_FILECON_ANY; in cil_gen_filecon()
4194 filecon->context_str = parse_current->next->next->next->data; in cil_gen_filecon()
4197 filecon->context = NULL; in cil_gen_filecon()
4199 cil_context_init(&filecon->context); in cil_gen_filecon()
4201 rc = cil_fill_context(parse_current->next->next->next->cl_head, filecon->context); in cil_gen_filecon()
4208 ast_node->data = filecon; in cil_gen_filecon()
4216 cil_destroy_filecon(filecon); in cil_gen_filecon()
4221 void cil_destroy_filecon(struct cil_filecon *filecon) in cil_destroy_filecon() argument
4223 if (filecon == NULL) { in cil_destroy_filecon()
4227 if (filecon->context_str == NULL && filecon->context != NULL) { in cil_destroy_filecon()
4228 cil_destroy_context(filecon->context); in cil_destroy_filecon()
4231 free(filecon); in cil_destroy_filecon()