Lines Matching defs:genfscon
4581 struct cil_genfscon *genfscon = NULL;
4592 cil_genfscon_init(&genfscon);
4594 genfscon->fs_str = parse_current->next->data;
4595 genfscon->path_str = parse_current->next->next->data;
4598 /* (genfscon <FS_STR> <PATH_STR> <FILE_TYPE> ... */
4601 genfscon->file_type = CIL_FILECON_ANY;
4603 genfscon->file_type = CIL_FILECON_FILE;
4605 genfscon->file_type = CIL_FILECON_DIR;
4607 genfscon->file_type = CIL_FILECON_CHAR;
4609 genfscon->file_type = CIL_FILECON_BLOCK;
4611 genfscon->file_type = CIL_FILECON_SOCKET;
4613 genfscon->file_type = CIL_FILECON_PIPE;
4615 genfscon->file_type = CIL_FILECON_SYMLINK;
4626 /* (genfscon <FS_STR> <PATH_STR> ... */
4631 cil_context_init(&genfscon->context);
4632 rc = cil_fill_context(context_node->cl_head, genfscon->context);
4637 genfscon->context_str = context_node->data;
4640 ast_node->data = genfscon;
4646 cil_tree_log(parse_current, CIL_ERR, "Bad genfscon declaration");
4647 cil_destroy_genfscon(genfscon);
4651 void cil_destroy_genfscon(struct cil_genfscon *genfscon)
4653 if (genfscon == NULL) {
4657 if (genfscon->context_str == NULL && genfscon->context != NULL) {
4658 cil_destroy_context(genfscon->context);
4661 free(genfscon);