Home
last modified time | relevance | path

Searched refs:expandattr (Results 1 – 7 of 7) sorted by relevance

/external/selinux/libsepol/cil/src/
Dandroid.c783 struct cil_expandtypeattribute *expandattr = NULL; in cil_build_mappings_tree() local
815 cil_expandtypeattribute_init(&expandattr); in cil_build_mappings_tree()
816 cil_list_init(&expandattr->attr_strs, CIL_TYPE); in cil_build_mappings_tree()
817 cil_list_append(expandattr->attr_strs, CIL_STRING, new_key); in cil_build_mappings_tree()
818 expandattr->expand = CIL_TRUE; in cil_build_mappings_tree()
822 ast_node->data = expandattr; in cil_build_mappings_tree()
Dcil.c2080 void cil_expandtypeattribute_init(struct cil_expandtypeattribute **expandattr) in cil_expandtypeattribute_init() argument
2082 *expandattr = cil_malloc(sizeof(**expandattr)); in cil_expandtypeattribute_init()
2084 (*expandattr)->attr_strs = NULL; in cil_expandtypeattribute_init()
2085 (*expandattr)->attr_datums = NULL; in cil_expandtypeattribute_init()
2086 (*expandattr)->expand = 0; in cil_expandtypeattribute_init()
Dcil_build_ast.c3223 struct cil_expandtypeattribute *expandattr = NULL; in cil_gen_expandtypeattribute() local
3235 cil_expandtypeattribute_init(&expandattr); in cil_gen_expandtypeattribute()
3238 cil_list_init(&expandattr->attr_strs, CIL_TYPE); in cil_gen_expandtypeattribute()
3239 cil_list_append(expandattr->attr_strs, CIL_STRING, parse_current->next->data); in cil_gen_expandtypeattribute()
3241 rc = cil_fill_list(parse_current->next->cl_head, CIL_TYPE, &expandattr->attr_strs); in cil_gen_expandtypeattribute()
3250 expandattr->expand = CIL_TRUE; in cil_gen_expandtypeattribute()
3252 expandattr->expand = CIL_FALSE; in cil_gen_expandtypeattribute()
3258 ast_node->data = expandattr; in cil_gen_expandtypeattribute()
3265 cil_destroy_expandtypeattribute(expandattr); in cil_gen_expandtypeattribute()
3269 void cil_destroy_expandtypeattribute(struct cil_expandtypeattribute *expandattr) in cil_destroy_expandtypeattribute() argument
[all …]
Dcil_write_ast.c659 struct cil_expandtypeattribute *expandattr = (struct cil_expandtypeattribute *)node->data; in cil_write_expandtypeattribute() local
661 rc = cil_unfill_expr(expandattr->attr_strs, &attr_strs, 1); in cil_write_expandtypeattribute()
666 expandattr->expand ? CIL_KEY_CONDTRUE : CIL_KEY_CONDFALSE); in cil_write_expandtypeattribute()
Dcil_build_ast.h142 void cil_destroy_expandtypeattribute(struct cil_expandtypeattribute *expandattr);
Dcil_internal.h1012 void cil_expandtypeattribute_init(struct cil_expandtypeattribute **expandattr);
Dcil_resolve_ast.c463 struct cil_expandtypeattribute *expandattr = current->data; in cil_resolve_expandtypeattribute() local
470 cil_list_init(&expandattr->attr_datums, CIL_TYPE); in cil_resolve_expandtypeattribute()
472 cil_list_for_each(curr, expandattr->attr_strs) { in cil_resolve_expandtypeattribute()
485 used = expandattr->expand ? CIL_ATTR_EXPAND_TRUE : CIL_ATTR_EXPAND_FALSE; in cil_resolve_expandtypeattribute()
487 cil_list_append(expandattr->attr_datums, CIL_TYPE, attr_datum); in cil_resolve_expandtypeattribute()