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()
160 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms() local
164 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
169 class = (struct cil_class *)datum; in cil_resolve_classperms()
177 rc = __cil_resolve_perms(&class->perms, common_symtab, cp->perm_strs, &cp->perms, FLAVOR(datum)); in cil_resolve_classperms()
191 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set() local
193 rc = cil_resolve_name(current, cp_set->set_str, CIL_SYM_CLASSPERMSETS, extra_args, &datum); in cil_resolve_classperms_set()
197 cp_set->set = (struct cil_classpermission*)datum; in cil_resolve_classperms_set()
200 if (datum->name == NULL) { in cil_resolve_classperms_set()
243 struct cil_symtab_datum *datum; in cil_resolve_classpermissionset() local
246 rc = cil_resolve_name(current, cps->set_str, CIL_SYM_CLASSPERMSETS, args, &datum); in cil_resolve_classpermissionset()
256 cp = (struct cil_classpermission *)datum; in cil_resolve_classpermissionset()
272 void cil_type_used(struct cil_symtab_datum *datum, int used) in cil_type_used() argument
276 if (FLAVOR(datum) == CIL_TYPEATTRIBUTE) { in cil_type_used()
277 attr = (struct cil_typeattribute*)datum; in cil_type_used()
283 "Resolving to false. \n", attr->datum.name); in cil_type_used()
560 a1_node = a1->datum.nodes->head->data; in cil_resolve_alias_to_actual()
564 a1_node = a1->datum.nodes->head->data; in cil_resolve_alias_to_actual()
568 cil_log(CIL_ERR, "Circular alias found: %s ", a1->datum.name); in cil_resolve_alias_to_actual()
571 cil_log(CIL_ERR, "%s ", a1->datum.name); in cil_resolve_alias_to_actual()
712 if (rangetrans->range->datum.name == NULL) { in cil_resolve_rangetransition()
773 …IL_ERR, "Too many permissions in class '%s' when including common permissions", class->datum.name); in cil_resolve_classcommon()
789 struct cil_symtab_datum *datum = NULL; in cil_resolve_classmapping() local
792 rc = cil_resolve_name(current, mapping->map_class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classmapping()
796 map = (struct cil_class*)datum; in cil_resolve_classmapping()
798 rc = cil_symtab_get_datum(&map->perms, mapping->map_perm_str, &datum); in cil_resolve_classmapping()
803 mp = (struct cil_perm*)datum; in cil_resolve_classmapping()
882 if (user->dftlevel->datum.name == NULL) { in cil_resolve_userlevel()
935 if (user->range->datum.name == NULL) { in cil_resolve_userrange()
1012 if (selinuxuser->range->datum.name == NULL) { in cil_resolve_selinuxuser()
1224 cil_log(CIL_ERR, "SID %s has already been merged into the ordered list\n", sid->datum.name); in __cil_ordered_item_insert()
1231 cil_log(CIL_ERR, "Class %s has already been merged into the ordered list\n", class->datum.name); in __cil_ordered_item_insert()
1238 cil_log(CIL_ERR, "Category %s has already been merged into the ordered list\n", cat->datum.name); in __cil_ordered_item_insert()
1245 …cil_log(CIL_ERR, "Sensitivity %s has already been merged into the ordered list\n", sens->datum.nam… in __cil_ordered_item_insert()
1388 … as it has already been declared in classorder.\n", ((struct cil_class*)(item->data))->datum.name); in insert_unordered()
1471 struct cil_symtab_datum *datum = NULL; in cil_resolve_classorder() local
1484 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classorder()
1489 cil_list_append(new, CIL_CLASS, datum); in cil_resolve_classorder()
1515 struct cil_symtab_datum *datum = NULL; in cil_resolve_sidorder() local
1522 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SIDS, extra_args, &datum); in cil_resolve_sidorder()
1527 cil_list_append(new, CIL_SID, datum); in cil_resolve_sidorder()
1606 struct cil_symtab_datum *datum = NULL; in cil_resolve_sensitivityorder() local
1613 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_SENS, extra_args, &datum); in cil_resolve_sensitivityorder()
1618 cil_list_append(new, CIL_SENS, datum); in cil_resolve_sensitivityorder()
1740 if (lvlrange->low->datum.name == NULL) { in cil_resolve_levelrange()
1761 if (lvlrange->high->datum.name == NULL) { in cil_resolve_levelrange()
1886 if (context->range->datum.name == NULL) { in cil_resolve_context()
2422 if (current != block->datum.nodes->head->data) { in cil_resolve_blockinherit_copy()
2651 struct cil_symtab_datum *datum; in cil_resolve_default() local
2656 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_default()
2660 cil_list_append(def->class_datums, CIL_CLASS, datum); in cil_resolve_default()
2674 struct cil_symtab_datum *datum; in cil_resolve_defaultrange() local
2679 rc = cil_resolve_name(current, (char *)curr->data, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_defaultrange()
2683 cil_list_append(def->class_datums, CIL_CLASS, datum); in cil_resolve_defaultrange()
2971 cil_list_append(cp->datum.nodes, CIL_LIST_ITEM, cp_node); in cil_resolve_call1()
3133 …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
3152 *datum = arg->arg; in cil_resolve_name_call_args()
3771 struct cil_tree_node *opt_node = opt->datum.nodes->head->data; in __cil_resolve_ast_node_helper()
3772 cil_tree_log(opt_node, lvl, "Disabling optional '%s'", opt->datum.name); in __cil_resolve_ast_node_helper()
4050 …_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
4054 return cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_root()
4057 …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
4069 rc = cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_parents()
4073 rc = __cil_resolve_name_with_parents(node->parent, name, sym_index, datum); in __cil_resolve_name_with_parents()
4076 rc = __cil_resolve_name_with_parents(NODE(inherit->block), name, sym_index, datum); in __cil_resolve_name_with_parents()
4084 rc = cil_symtab_get_datum(symtab, name, datum); in __cil_resolve_name_with_parents()
4089 rc = cil_resolve_name_call_args(call, name, sym_index, datum); in __cil_resolve_name_with_parents()
4092 rc = __cil_resolve_name_with_parents(NODE(call->macro)->parent, name, sym_index, datum); in __cil_resolve_name_with_parents()
4111 …uct cil_tree_node *node, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum) in __cil_resolve_name_helper() argument
4115 rc = __cil_resolve_name_with_parents(node, name, sym_index, datum); in __cil_resolve_name_helper()
4117 rc = __cil_resolve_name_with_root(db, name, sym_index, datum); in __cil_resolve_name_helper()
4122 …_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum) in cil_resolve_name() argument
4127 rc = cil_resolve_name_keep_aliases(ast_node, name, sym_index, extra_args, datum); in cil_resolve_name()
4135 node = NODE(*datum); in cil_resolve_name()
4138 struct cil_alias *alias = (struct cil_alias *)(*datum); in cil_resolve_name()
4140 *datum = alias->actual; in cil_resolve_name()
4150 …_node, char *name, enum cil_sym_index sym_index, void *extra_args, struct cil_symtab_datum **datum) in cil_resolve_name_keep_aliases() argument
4162 *datum = NULL; in cil_resolve_name_keep_aliases()
4166 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum); in cil_resolve_name_keep_aliases()
4189 rc = __cil_resolve_name_helper(db, node->parent, current, CIL_SYM_BLOCKS, datum); in cil_resolve_name_keep_aliases()
4194 symtab = (*datum)->symtab; in cil_resolve_name_keep_aliases()
4198 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name_keep_aliases()
4203 node = NODE(*datum); in cil_resolve_name_keep_aliases()
4218 symtab = (*datum)->symtab; in cil_resolve_name_keep_aliases()
4225 rc = cil_symtab_get_datum(symtab, current, datum); in cil_resolve_name_keep_aliases()
4236 *datum = NULL; in cil_resolve_name_keep_aliases()