Lines Matching defs:fsuse
5170 struct cil_fsuse *fsuse = NULL;
5184 cil_fsuse_init(&fsuse);
5187 fsuse->type = CIL_FSUSE_XATTR;
5189 fsuse->type = CIL_FSUSE_TASK;
5191 fsuse->type = CIL_FSUSE_TRANS;
5193 cil_log(CIL_ERR, "Invalid fsuse type\n");
5197 fsuse->fs_str = parse_current->next->next->data;
5200 fsuse->context_str = parse_current->next->next->next->data;
5202 cil_context_init(&fsuse->context);
5204 rc = cil_fill_context(parse_current->next->next->next->cl_head, fsuse->context);
5210 ast_node->data = fsuse;
5216 cil_tree_log(parse_current, CIL_ERR, "Bad fsuse declaration");
5217 cil_destroy_fsuse(fsuse);
5221 void cil_destroy_fsuse(struct cil_fsuse *fsuse)
5223 if (fsuse == NULL) {
5227 if (fsuse->context_str == NULL && fsuse->context != NULL) {
5228 cil_destroy_context(fsuse->context);
5231 free(fsuse);