Lines Matching refs:datum

104 static int __cil_get_sepol_user_datum(policydb_t *pdb, struct cil_symtab_datum *datum, user_datum_t…  in __cil_get_sepol_user_datum()  argument
106 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum()
108 cil_log(CIL_INFO, "Failed to find user %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_user_datum()
115 static int __cil_get_sepol_role_datum(policydb_t *pdb, struct cil_symtab_datum *datum, role_datum_t… in __cil_get_sepol_role_datum() argument
117 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum()
119 cil_log(CIL_INFO, "Failed to find role %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_role_datum()
126 static int __cil_get_sepol_type_datum(policydb_t *pdb, struct cil_symtab_datum *datum, type_datum_t… in __cil_get_sepol_type_datum() argument
128 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum()
130 cil_log(CIL_INFO, "Failed to find type %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_type_datum()
137 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum() argument
139 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum()
141 cil_log(CIL_INFO, "Failed to find class %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_class_datum()
148 static int __cil_get_sepol_cat_datum(policydb_t *pdb, struct cil_symtab_datum *datum, cat_datum_t *… in __cil_get_sepol_cat_datum() argument
150 *sepol_cat = hashtab_search(pdb->p_cats.table, datum->fqn); in __cil_get_sepol_cat_datum()
152 cil_log(CIL_INFO, "Failed to find category %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_cat_datum()
159 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum… in __cil_get_sepol_level_datum() argument
161 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum()
163 cil_log(CIL_INFO, "Failed to find level %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_level_datum()
170 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role() argument
172 struct cil_tree_node *node = datum->nodes->head->data; in __cil_expand_role()
175 struct cil_roleattribute *attr = (struct cil_roleattribute *)datum; in __cil_expand_role()
181 struct cil_role *role = (struct cil_role *)datum; in __cil_expand_role()
196 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type() argument
198 struct cil_tree_node *node = datum->nodes->head->data; in __cil_expand_type()
201 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; in __cil_expand_type()
207 struct cil_type *type = (struct cil_type *)datum; in __cil_expand_type()
290 struct cil_tree_node *node = cil_common->datum.nodes->head->data; in cil_common_to_policydb()
295 key = cil_strdup(cil_common->datum.fqn); in cil_common_to_policydb()
313 key = cil_strdup(curr->datum.fqn); in cil_common_to_policydb()
342 struct cil_tree_node *node = cil_class->datum.nodes->head->data; in cil_classorder_to_policydb()
348 key = cil_strdup(cil_class->datum.fqn); in cil_classorder_to_policydb()
365 key = cil_class->common->datum.fqn; in cil_classorder_to_policydb()
383 key = cil_strdup(curr_perm->datum.fqn); in cil_classorder_to_policydb()
410 if (cil_role->datum.fqn == CIL_KEY_OBJECT_R) { in cil_role_to_policydb()
417 key = cil_strdup(cil_role->datum.fqn); in cil_role_to_policydb()
456 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn); in cil_role_bounds_to_policydb()
503 key = cil_strdup(cil_type->datum.fqn); in cil_type_to_policydb()
539 cil_log(CIL_ERR, "Failed to insert type bounds for type %s\n", cil_type->datum.fqn); in cil_type_bounds_to_policydb()
556 key = cil_strdup(cil_alias->datum.fqn); in cil_typealias_to_policydb()
610 key = cil_strdup(cil_attr->datum.fqn); in cil_typeattribute_to_policydb()
690 capnum = sepol_polcap_getnum(cil_polcap->datum.fqn); in cil_policycap_to_policydb()
713 key = cil_strdup(cil_user->datum.fqn); in cil_user_to_policydb()
748 cil_log(CIL_ERR, "Failed to insert user bounds for user %s\n", cil_user->datum.fqn); in cil_user_bounds_to_policydb()
800 key = cil_strdup(cil_bool->datum.fqn); in cil_bool_to_policydb()
830 key = cil_strdup(cil_cat->datum.fqn); in cil_catorder_to_policydb()
858 key = cil_strdup(cil_alias->datum.fqn); in cil_catalias_to_policydb()
893 key = cil_strdup(cil_sens->datum.fqn); in cil_sensitivityorder_to_policydb()
925 key = cil_strdup(cil_alias->datum.fqn); in cil_sensalias_to_policydb()
996 return &cur_av->node->datum; in cil_cond_av_list_search()
1036 if (existing->datum.data != res) { in __cil_insert_type_rule()
1062 if (existing->datum.data != res) { in __cil_insert_type_rule()
1247 int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum) in __cil_perms_to_datum() argument
1258 key = cil_perm->datum.fqn; in __cil_perms_to_datum()
1272 *datum = data; in __cil_perms_to_datum()
2620 new_ocon->u.name = cil_strdup(cil_sid->datum.fqn); in cil_sidorder_to_policydb()
2623 cil_log(CIL_ERR,"Problem with context for SID %s\n",cil_sid->datum.fqn); in cil_sidorder_to_policydb()
3378 int __cil_common_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_common_val_array_insert() argument
3381 common_datum_t *common = (common_datum_t *)datum; in __cil_common_val_array_insert()
3391 int __cil_class_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_class_val_array_insert() argument
3394 class_datum_t *class = (class_datum_t *)datum; in __cil_class_val_array_insert()
3405 int __cil_role_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_role_val_array_insert() argument
3408 role_datum_t *role = (role_datum_t *)datum; in __cil_role_val_array_insert()
3419 int __cil_type_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_type_val_array_insert() argument
3422 type_datum_t *type = (type_datum_t *)datum; in __cil_type_val_array_insert()
3433 int __cil_user_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_user_val_array_insert() argument
3436 user_datum_t *user = (user_datum_t *)datum; in __cil_user_val_array_insert()
3447 int __cil_bool_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_bool_val_array_insert() argument
3450 cond_bool_datum_t *bool = (cond_bool_datum_t *)datum; in __cil_bool_val_array_insert()
3461 int __cil_level_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_level_val_array_insert() argument
3464 level_datum_t *level = (level_datum_t *)datum; in __cil_level_val_array_insert()
3474 int __cil_cat_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_cat_val_array_insert() argument
3477 cat_datum_t *cat = (cat_datum_t *)datum; in __cil_cat_val_array_insert()