Lines Matching refs:attrset
1345 struct cil_userattributeset *attrset = NULL; in cil_gen_userattributeset() local
1357 cil_userattributeset_init(&attrset); in cil_gen_userattributeset()
1359 attrset->attr_str = parse_current->next->data; in cil_gen_userattributeset()
1361 rc = cil_gen_expr(parse_current->next->next, CIL_USER, &attrset->str_expr); in cil_gen_userattributeset()
1365 ast_node->data = attrset; in cil_gen_userattributeset()
1372 cil_destroy_userattributeset(attrset); in cil_gen_userattributeset()
1377 void cil_destroy_userattributeset(struct cil_userattributeset *attrset) in cil_destroy_userattributeset() argument
1379 if (attrset == NULL) { in cil_destroy_userattributeset()
1383 cil_list_destroy(&attrset->str_expr, CIL_TRUE); in cil_destroy_userattributeset()
1384 cil_list_destroy(&attrset->datum_expr, CIL_FALSE); in cil_destroy_userattributeset()
1386 free(attrset); in cil_destroy_userattributeset()
1979 struct cil_roleattributeset *attrset = NULL; in cil_gen_roleattributeset() local
1991 cil_roleattributeset_init(&attrset); in cil_gen_roleattributeset()
1993 attrset->attr_str = parse_current->next->data; in cil_gen_roleattributeset()
1995 rc = cil_gen_expr(parse_current->next->next, CIL_ROLE, &attrset->str_expr); in cil_gen_roleattributeset()
1999 ast_node->data = attrset; in cil_gen_roleattributeset()
2006 cil_destroy_roleattributeset(attrset); in cil_gen_roleattributeset()
2011 void cil_destroy_roleattributeset(struct cil_roleattributeset *attrset) in cil_destroy_roleattributeset() argument
2013 if (attrset == NULL) { in cil_destroy_roleattributeset()
2017 cil_list_destroy(&attrset->str_expr, CIL_TRUE); in cil_destroy_roleattributeset()
2018 cil_list_destroy(&attrset->datum_expr, CIL_FALSE); in cil_destroy_roleattributeset()
2020 free(attrset); in cil_destroy_roleattributeset()
3170 struct cil_typeattributeset *attrset = NULL; in cil_gen_typeattributeset() local
3182 cil_typeattributeset_init(&attrset); in cil_gen_typeattributeset()
3184 attrset->attr_str = parse_current->next->data; in cil_gen_typeattributeset()
3186 rc = cil_gen_expr(parse_current->next->next, CIL_TYPE, &attrset->str_expr); in cil_gen_typeattributeset()
3190 ast_node->data = attrset; in cil_gen_typeattributeset()
3197 cil_destroy_typeattributeset(attrset); in cil_gen_typeattributeset()
3201 void cil_destroy_typeattributeset(struct cil_typeattributeset *attrset) in cil_destroy_typeattributeset() argument
3203 if (attrset == NULL) { in cil_destroy_typeattributeset()
3207 cil_list_destroy(&attrset->str_expr, CIL_TRUE); in cil_destroy_typeattributeset()
3208 cil_list_destroy(&attrset->datum_expr, CIL_FALSE); in cil_destroy_typeattributeset()
3210 free(attrset); in cil_destroy_typeattributeset()