Lines Matching defs:filecon
4215 struct cil_filecon *filecon = NULL;
4228 cil_filecon_init(&filecon);
4230 filecon->path_str = parse_current->next->data;
4233 filecon->type = CIL_FILECON_ANY;
4235 filecon->type = CIL_FILECON_FILE;
4237 filecon->type = CIL_FILECON_DIR;
4239 filecon->type = CIL_FILECON_CHAR;
4241 filecon->type = CIL_FILECON_BLOCK;
4243 filecon->type = CIL_FILECON_SOCKET;
4245 filecon->type = CIL_FILECON_PIPE;
4247 filecon->type = CIL_FILECON_SYMLINK;
4255 filecon->context_str = parse_current->next->next->next->data;
4258 filecon->context = NULL;
4260 cil_context_init(&filecon->context);
4262 rc = cil_fill_context(parse_current->next->next->next->cl_head, filecon->context);
4269 ast_node->data = filecon;
4275 cil_tree_log(parse_current, CIL_ERR, "Bad filecon declaration");
4276 cil_destroy_filecon(filecon);
4281 void cil_destroy_filecon(struct cil_filecon *filecon)
4283 if (filecon == NULL) {
4287 if (filecon->context_str == NULL && filecon->context != NULL) {
4288 cil_destroy_context(filecon->context);
4291 free(filecon);