Lines Matching refs:sym_index

802 int cil_flavor_to_symtab_index(enum cil_flavor flavor, enum cil_sym_index *sym_index)  in cil_flavor_to_symtab_index()  argument
810 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
813 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
816 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
819 *sym_index = CIL_SYM_BOOLS; in cil_flavor_to_symtab_index()
822 *sym_index = CIL_SYM_TUNABLES; in cil_flavor_to_symtab_index()
826 *sym_index = CIL_SYM_PERMS; in cil_flavor_to_symtab_index()
829 *sym_index = CIL_SYM_COMMONS; in cil_flavor_to_symtab_index()
833 *sym_index = CIL_SYM_CLASSES; in cil_flavor_to_symtab_index()
837 *sym_index = CIL_SYM_CLASSPERMSETS; in cil_flavor_to_symtab_index()
841 *sym_index = CIL_SYM_USERS; in cil_flavor_to_symtab_index()
845 *sym_index = CIL_SYM_ROLES; in cil_flavor_to_symtab_index()
850 *sym_index = CIL_SYM_TYPES; in cil_flavor_to_symtab_index()
854 *sym_index = CIL_SYM_SENS; in cil_flavor_to_symtab_index()
859 *sym_index = CIL_SYM_CATS; in cil_flavor_to_symtab_index()
862 *sym_index = CIL_SYM_LEVELS; in cil_flavor_to_symtab_index()
865 *sym_index = CIL_SYM_LEVELRANGES; in cil_flavor_to_symtab_index()
868 *sym_index = CIL_SYM_SIDS; in cil_flavor_to_symtab_index()
871 *sym_index = CIL_SYM_NAMES; in cil_flavor_to_symtab_index()
874 *sym_index = CIL_SYM_CONTEXTS; in cil_flavor_to_symtab_index()
877 *sym_index = CIL_SYM_IPADDRS; in cil_flavor_to_symtab_index()
880 *sym_index = CIL_SYM_POLICYCAPS; in cil_flavor_to_symtab_index()
883 *sym_index = CIL_SYM_PERMX; in cil_flavor_to_symtab_index()
886 *sym_index = CIL_SYM_UNKNOWN; in cil_flavor_to_symtab_index()
1759 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab() argument
1764 if (sym_index == CIL_SYM_PERMS) { in cil_get_symtab()
1774 if (sym_index < CIL_SYM_BLOCKS || sym_index >= CIL_SYM_NUM) { in cil_get_symtab()
1782 *symtab = &((struct cil_root *)node->data)->symtab[sym_index]; in cil_get_symtab()
1785 *symtab = &((struct cil_block*)node->data)->symtab[sym_index]; in cil_get_symtab()
1788 *symtab = &((struct cil_macro*)node->data)->symtab[sym_index]; in cil_get_symtab()
1792 *symtab = &((struct cil_in*)node->data)->symtab[sym_index]; in cil_get_symtab()
1797 *symtab = &((struct cil_condblock*)node->data)->symtab[sym_index]; in cil_get_symtab()