Lines Matching refs:datum

77 	struct cil_symtab_datum *datum = NULL;  in __cil_insert_name()  local
82 cil_symtab_get_datum(symtab, key, &datum); in __cil_insert_name()
83 if (datum != NULL) { in __cil_insert_name()
84 return (struct cil_name *)datum; in __cil_insert_name()
152 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms() local
156 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
161 class = (struct cil_class *)datum; in cil_resolve_classperms()
183 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set() local
185 rc = cil_resolve_name(current, cp_set->set_str, CIL_SYM_CLASSPERMSETS, extra_args, &datum); in cil_resolve_classperms_set()
189 cp_set->set = (struct cil_classpermission*)datum; in cil_resolve_classperms_set()
192 if (datum->name == NULL) { in cil_resolve_classperms_set()
235 struct cil_symtab_datum *datum; in cil_resolve_classpermissionset() local
238 rc = cil_resolve_name(current, cps->set_str, CIL_SYM_CLASSPERMSETS, args, &datum); in cil_resolve_classpermissionset()
248 cp = (struct cil_classpermission *)datum; in cil_resolve_classpermissionset()
264 int cil_type_used(struct cil_symtab_datum *datum) in cil_type_used() argument
268 if (FLAVOR(datum) == CIL_TYPEATTRIBUTE) { in cil_type_used()
269 attr = (struct cil_typeattribute*)datum; in cil_type_used()
504 a1_node = a1->datum.nodes->head->data; in cil_resolve_alias_to_actual()
508 a1_node = a1->datum.nodes->head->data; in cil_resolve_alias_to_actual()
512 cil_log(CIL_ERR, "Circular alias found: %s ", a1->datum.name); in cil_resolve_alias_to_actual()
515 cil_log(CIL_ERR, "%s ", a1->datum.name); in cil_resolve_alias_to_actual()
660 if (rangetrans->range->datum.name == NULL) { in cil_resolve_rangetransition()
733 struct cil_symtab_datum *datum = NULL; in cil_resolve_classmapping() local
736 rc = cil_resolve_name(current, mapping->map_class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classmapping()
740 map = (struct cil_class*)datum; in cil_resolve_classmapping()
742 rc = cil_symtab_get_datum(&map->perms, mapping->map_perm_str, &datum); in cil_resolve_classmapping()
747 mp = (struct cil_perm*)datum; in cil_resolve_classmapping()
826 if (user->dftlevel->datum.name == NULL) { in cil_resolve_userlevel()
879 if (user->range->datum.name == NULL) { in cil_resolve_userrange()
956 if (selinuxuser->range->datum.name == NULL) { in cil_resolve_selinuxuser()
1170 cil_log(CIL_ERR, "SID %s has already been merged into the ordered list\n", sid->datum.name); in __cil_ordered_item_insert()
1177 cil_log(CIL_ERR, "Class %s has already been merged into the ordered list\n", class->datum.name); in __cil_ordered_item_insert()
1184 cil_log(CIL_ERR, "Category %s has already been merged into the ordered list\n", cat->datum.name); in __cil_ordered_item_insert()
1191 …cil_log(CIL_ERR, "Sensitivity %s has already been merged into the ordered list\n", sens->datum.nam… in __cil_ordered_item_insert()
1334 … as it has already been declared in classorder.\n", ((struct cil_class*)(item->data))->datum.name); in insert_unordered()
1417 struct cil_symtab_datum *datum = NULL; in cil_resolve_classorder() local
1430 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classorder()
1435 cil_list_append(new, CIL_CLASS, datum); in cil_resolve_classorder()
1460 struct cil_symtab_datum *datum = NULL; in cil_resolve_sidorder() local
1467 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SIDS, extra_args, &datum); in cil_resolve_sidorder()
1472 cil_list_append(new, CIL_SID, datum); in cil_resolve_sidorder()
1549 struct cil_symtab_datum *datum = NULL; in cil_resolve_sensitivityorder() local
1556 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SENS, extra_args, &datum); in cil_resolve_sensitivityorder()
1561 cil_list_append(new, CIL_SENS, datum); in cil_resolve_sensitivityorder()
1682 if (lvlrange->low->datum.name == NULL) { in cil_resolve_levelrange()
1703 if (lvlrange->high->datum.name == NULL) { in cil_resolve_levelrange()
1828 if (context->range->datum.name == NULL) { in cil_resolve_context()
2317 if (current != block->datum.nodes->head->data) { in cil_resolve_blockinherit_copy()
2487 struct cil_tree_node *node = user->bounds->datum.nodes->head->data; in cil_resolve_bounds()
2500 struct cil_tree_node *node = role->bounds->datum.nodes->head->data; in cil_resolve_bounds()
2554 struct cil_symtab_datum *datum; in cil_resolve_default() local
2559 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_default()
2563 cil_list_append(def->class_datums, CIL_CLASS, datum); in cil_resolve_default()
2577 struct cil_symtab_datum *datum; in cil_resolve_defaultrange() local
2582 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_defaultrange()
2586 cil_list_append(def->class_datums, CIL_CLASS, datum); in cil_resolve_defaultrange()
2871 cil_list_append(cp->datum.nodes, CIL_LIST_ITEM, cp_node); in cil_resolve_call1()
3032 …s(struct cil_call *call, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum) in cil_resolve_name_call_args() argument
3051 *datum = arg->arg; in cil_resolve_name_call_args()
3660 struct cil_tree_node *opt_node = opt->datum.nodes->head->data; in __cil_resolve_ast_node_helper()
3661 …cil_log(lvl, "Disabling optional '%s' at line %d of %s: ", opt->datum.name, opt_node->line, opt_no… in __cil_resolve_ast_node_helper()
3931 …_root(struct cil_db *db, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum) in __cil_resolve_name_with_root() argument
3935 return cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_root()
3938 …uct cil_tree_node *node, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum) in __cil_resolve_name_with_parents() argument
3950 rc = cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_parents()
3954 rc = __cil_resolve_name_with_parents(node->parent, name, sym_index, datum); in __cil_resolve_name_with_parents()
3957 rc = __cil_resolve_name_with_parents(NODE(inherit->block), name, sym_index, datum); in __cil_resolve_name_with_parents()
3965 rc = cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_parents()
3970 rc = cil_resolve_name_call_args(call, name, sym_index, datum); in __cil_resolve_name_with_parents()
3973 rc = __cil_resolve_name_with_parents(NODE(call->macro)->parent, name, sym_index, datum); in __cil_resolve_name_with_parents()
3992 …uct cil_tree_node *node, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum) in __cil_resolve_name_helper() argument
3996 rc = __cil_resolve_name_with_parents(node, name, sym_index, datum); in __cil_resolve_name_helper()
3998 rc = __cil_resolve_name_with_root(db, name, sym_index, datum); in __cil_resolve_name_helper()
4003 …_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum) in cil_resolve_name() argument
4015 *datum = NULL; in cil_resolve_name()
4019 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum); in cil_resolve_name()
4035 rc = __cil_resolve_name_helper(db, node->parent, current, CIL_SYM_BLOCKS, datum); in cil_resolve_name()
4040 symtab = (*datum)->symtab; in cil_resolve_name()
4044 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name()
4049 node = NODE(*datum); in cil_resolve_name()
4064 symtab = (*datum)->symtab; in cil_resolve_name()
4071 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name()
4082 *datum = NULL; in cil_resolve_name()
4085 if (*datum != NULL) { in cil_resolve_name()
4089 node = NODE(*datum); in cil_resolve_name()
4092 struct cil_alias *alias = (struct cil_alias *)(*datum); in cil_resolve_name()
4094 *datum = alias->actual; in cil_resolve_name()