Lines Matching refs:datum

81 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
83 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum()
85 cil_log(CIL_INFO, "Failed to find user %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_user_datum()
92 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
94 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum()
96 cil_log(CIL_INFO, "Failed to find role %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_role_datum()
103 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
105 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum()
107 cil_log(CIL_INFO, "Failed to find type %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_type_datum()
114 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum() argument
116 *sepol_class = hashtab_search(pdb->p_classes.table, datum->fqn); in __cil_get_sepol_class_datum()
118 cil_log(CIL_INFO, "Failed to find class %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_class_datum()
125 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
127 *sepol_cat = hashtab_search(pdb->p_cats.table, datum->fqn); in __cil_get_sepol_cat_datum()
129 cil_log(CIL_INFO, "Failed to find category %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_cat_datum()
136 static int __cil_get_sepol_level_datum(policydb_t *pdb, struct cil_symtab_datum *datum, level_datum… in __cil_get_sepol_level_datum() argument
138 *sepol_level = hashtab_search(pdb->p_levels.table, datum->fqn); in __cil_get_sepol_level_datum()
140 cil_log(CIL_INFO, "Failed to find level %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_level_datum()
147 static int __cil_expand_user(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_user() argument
149 struct cil_tree_node *node = datum->nodes->head->data; in __cil_expand_user()
154 attr = (struct cil_userattribute *)datum; in __cil_expand_user()
160 user = (struct cil_user *)datum; in __cil_expand_user()
175 static int __cil_expand_role(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_role() argument
177 struct cil_tree_node *node = datum->nodes->head->data; in __cil_expand_role()
180 struct cil_roleattribute *attr = (struct cil_roleattribute *)datum; in __cil_expand_role()
186 struct cil_role *role = (struct cil_role *)datum; in __cil_expand_role()
201 static int __cil_expand_type(struct cil_symtab_datum *datum, ebitmap_t *new) in __cil_expand_type() argument
203 struct cil_tree_node *node = datum->nodes->head->data; in __cil_expand_type()
206 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; in __cil_expand_type()
212 struct cil_type *type = (struct cil_type *)datum; in __cil_expand_type()
246 struct cil_tree_node *node = cil_common->datum.nodes->head->data; in cil_common_to_policydb()
251 key = cil_strdup(cil_common->datum.fqn); in cil_common_to_policydb()
269 key = cil_strdup(curr->datum.fqn); in cil_common_to_policydb()
304 key = cil_strdup(cil_class->datum.fqn); in cil_classorder_to_policydb()
324 key = cil_class->common->datum.fqn; in cil_classorder_to_policydb()
347 key = cil_strdup(cil_perm->datum.fqn); in cil_classorder_to_policydb()
374 if (cil_role->datum.fqn == CIL_KEY_OBJECT_R) { in cil_role_to_policydb()
381 key = cil_strdup(cil_role->datum.fqn); in cil_role_to_policydb()
420 cil_log(CIL_ERR, "Failed to insert role bounds for role %s\n", cil_role->datum.fqn); in cil_role_bounds_to_policydb()
467 key = cil_strdup(cil_type->datum.fqn); in cil_type_to_policydb()
505 cil_log(CIL_ERR, "Failed to insert type bounds for type %s\n", cil_type->datum.fqn); in cil_type_bounds_to_policydb()
522 key = cil_strdup(cil_alias->datum.fqn); in cil_typealias_to_policydb()
576 key = cil_strdup(cil_attr->datum.fqn); in cil_typeattribute_to_policydb()
666 capnum = sepol_polcap_getnum(cil_polcap->datum.fqn); in cil_policycap_to_policydb()
689 key = cil_strdup(cil_user->datum.fqn); in cil_user_to_policydb()
724 cil_log(CIL_ERR, "Failed to insert user bounds for user %s\n", cil_user->datum.fqn); in cil_user_bounds_to_policydb()
774 key = cil_strdup(cil_bool->datum.fqn); in cil_bool_to_policydb()
804 key = cil_strdup(cil_cat->datum.fqn); in cil_catorder_to_policydb()
832 key = cil_strdup(cil_alias->datum.fqn); in cil_catalias_to_policydb()
867 key = cil_strdup(cil_sens->datum.fqn); in cil_sensitivityorder_to_policydb()
899 key = cil_strdup(cil_alias->datum.fqn); in cil_sensalias_to_policydb()
970 return &cur_av->node->datum; in cil_cond_av_list_search()
1010 if (existing->datum.data != res) { in __cil_insert_type_rule()
1036 if (existing->datum.data != res) { in __cil_insert_type_rule()
1221 int __perm_str_to_datum(char *perm_str, class_datum_t *sepol_class, uint32_t *datum) in __perm_str_to_datum() argument
1237 *datum |= 1 << (sepol_perm->s.value - 1); in __perm_str_to_datum()
1245 int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum) in __cil_perms_to_datum() argument
1255 key = cil_perm->datum.fqn; in __cil_perms_to_datum()
1263 *datum = data; in __cil_perms_to_datum()
1552 int __cil_avrulex_ioctl_to_policydb(hashtab_key_t k, hashtab_datum_t datum, void *args) in __cil_avrulex_ioctl_to_policydb() argument
1577 rc = __cil_permx_bitmap_to_sepol_xperms_list(datum, &xperms_list); in __cil_avrulex_ioctl_to_policydb()
1604 ebitmap_destroy(datum); in __cil_avrulex_ioctl_to_policydb()
1605 free(datum); in __cil_avrulex_ioctl_to_policydb()
2917 new_ocon->u.name = cil_strdup(cil_sid->datum.fqn); in cil_sidorder_to_policydb()
2920 cil_log(CIL_ERR,"Problem with context for SID %s\n",cil_sid->datum.fqn); in cil_sidorder_to_policydb()
3679 int __cil_common_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_common_val_array_insert() argument
3682 common_datum_t *common = (common_datum_t *)datum; in __cil_common_val_array_insert()
3692 int __cil_class_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_class_val_array_insert() argument
3695 class_datum_t *class = (class_datum_t *)datum; in __cil_class_val_array_insert()
3706 int __cil_role_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_role_val_array_insert() argument
3709 role_datum_t *role = (role_datum_t *)datum; in __cil_role_val_array_insert()
3720 int __cil_type_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_type_val_array_insert() argument
3723 type_datum_t *type = (type_datum_t *)datum; in __cil_type_val_array_insert()
3734 int __cil_user_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_user_val_array_insert() argument
3737 user_datum_t *user = (user_datum_t *)datum; in __cil_user_val_array_insert()
3748 int __cil_bool_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_bool_val_array_insert() argument
3751 cond_bool_datum_t *bool = (cond_bool_datum_t *)datum; in __cil_bool_val_array_insert()
3762 int __cil_level_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_level_val_array_insert() argument
3765 level_datum_t *level = (level_datum_t *)datum; in __cil_level_val_array_insert()
3775 int __cil_cat_val_array_insert(hashtab_key_t key, hashtab_datum_t datum, void *data) in __cil_cat_val_array_insert() argument
3778 cat_datum_t *cat = (cat_datum_t *)datum; in __cil_cat_val_array_insert()
4198 …epol_type(policydb_t *pdb, const struct cil_db *db, struct cil_symtab_datum *datum, ebitmap_t *map) in __cil_add_sepol_type() argument
4201 struct cil_tree_node *n = datum->nodes->head->data; in __cil_add_sepol_type()
4207 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; in __cil_add_sepol_type()
4210 datum = DATUM(db->val_to_type[i]); in __cil_add_sepol_type()
4211 rc = __cil_get_sepol_type_datum(pdb, datum, &sepol_datum); in __cil_add_sepol_type()
4216 rc = __cil_get_sepol_type_datum(pdb, datum, &sepol_datum); in __cil_add_sepol_type()
4534 avtab_datum_t *d = &sepol_rule->datum; in cil_avrule_from_sepol()
4584 t->datum.fqn, t->bounds->datum.fqn); in cil_check_type_bounds()