Lines Matching refs:sym_index
1019 int cil_flavor_to_symtab_index(enum cil_flavor flavor, enum cil_sym_index *sym_index) in cil_flavor_to_symtab_index() argument
1027 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
1030 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
1033 *sym_index = CIL_SYM_BLOCKS; in cil_flavor_to_symtab_index()
1036 *sym_index = CIL_SYM_BOOLS; in cil_flavor_to_symtab_index()
1039 *sym_index = CIL_SYM_TUNABLES; in cil_flavor_to_symtab_index()
1043 *sym_index = CIL_SYM_PERMS; in cil_flavor_to_symtab_index()
1046 *sym_index = CIL_SYM_COMMONS; in cil_flavor_to_symtab_index()
1050 *sym_index = CIL_SYM_CLASSES; in cil_flavor_to_symtab_index()
1054 *sym_index = CIL_SYM_CLASSPERMSETS; in cil_flavor_to_symtab_index()
1058 *sym_index = CIL_SYM_USERS; in cil_flavor_to_symtab_index()
1062 *sym_index = CIL_SYM_ROLES; in cil_flavor_to_symtab_index()
1067 *sym_index = CIL_SYM_TYPES; in cil_flavor_to_symtab_index()
1071 *sym_index = CIL_SYM_SENS; in cil_flavor_to_symtab_index()
1076 *sym_index = CIL_SYM_CATS; in cil_flavor_to_symtab_index()
1079 *sym_index = CIL_SYM_LEVELS; in cil_flavor_to_symtab_index()
1082 *sym_index = CIL_SYM_LEVELRANGES; in cil_flavor_to_symtab_index()
1085 *sym_index = CIL_SYM_SIDS; in cil_flavor_to_symtab_index()
1088 *sym_index = CIL_SYM_NAMES; in cil_flavor_to_symtab_index()
1091 *sym_index = CIL_SYM_CONTEXTS; in cil_flavor_to_symtab_index()
1094 *sym_index = CIL_SYM_IPADDRS; in cil_flavor_to_symtab_index()
1097 *sym_index = CIL_SYM_POLICYCAPS; in cil_flavor_to_symtab_index()
1100 *sym_index = CIL_SYM_PERMX; in cil_flavor_to_symtab_index()
1103 *sym_index = CIL_SYM_UNKNOWN; in cil_flavor_to_symtab_index()
1957 int cil_get_symtab(struct cil_tree_node *ast_node, symtab_t **symtab, enum cil_sym_index sym_index) in cil_get_symtab() argument
1962 if (sym_index == CIL_SYM_PERMS) { in cil_get_symtab()
1972 if (sym_index < CIL_SYM_BLOCKS || sym_index >= CIL_SYM_NUM) { in cil_get_symtab()
1980 *symtab = &((struct cil_root *)node->data)->symtab[sym_index]; in cil_get_symtab()
1983 *symtab = &((struct cil_block*)node->data)->symtab[sym_index]; in cil_get_symtab()
1986 *symtab = &((struct cil_macro*)node->data)->symtab[sym_index]; in cil_get_symtab()
1990 *symtab = &((struct cil_in*)node->data)->symtab[sym_index]; in cil_get_symtab()
1995 *symtab = &((struct cil_condblock*)node->data)->symtab[sym_index]; in cil_get_symtab()