/third_party/selinux/libsepol/cil/src/ |
D | cil_symtab.c | 62 void cil_symtab_datum_init(struct cil_symtab_datum *datum) in cil_symtab_datum_init() argument 64 datum->name = NULL; in cil_symtab_datum_init() 65 datum->fqn = NULL; in cil_symtab_datum_init() 66 datum->symtab = NULL; in cil_symtab_datum_init() 67 cil_list_init(&datum->nodes, CIL_LIST_ITEM); in cil_symtab_datum_init() 70 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum) in cil_symtab_datum_destroy() argument 72 cil_list_destroy(&datum->nodes, 0); in cil_symtab_datum_destroy() 73 cil_symtab_remove_datum(datum); in cil_symtab_datum_destroy() 76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node) in cil_symtab_datum_remove_node() argument 78 if (datum && datum->nodes != NULL) { in cil_symtab_datum_remove_node() [all …]
|
D | cil_copy_ast.c | 103 char *key = orig->datum.name; in cil_copy_block() 104 struct cil_symtab_datum *datum = NULL; in cil_copy_block() local 106 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_block() 107 if (datum != NULL) { in cil_copy_block() 108 if (FLAVOR(datum) != CIL_BLOCK) { in cil_copy_block() 110 …cil_tree_log(NODE(datum), CIL_ERR, " Conflicts with %s already declared", cil_node_to_string(NODE… in cil_copy_block() 114 cil_tree_log(NODE(datum), CIL_WARN, " Previously declared"); in cil_copy_block() 115 *copy = datum; in cil_copy_block() 157 char *key = orig->datum.name; in cil_copy_policycap() 158 struct cil_symtab_datum *datum = NULL; in cil_copy_policycap() local [all …]
|
D | cil_verify.c | 418 static int cil_verify_no_self_reference(enum cil_flavor flavor, struct cil_symtab_datum *datum, str… 431 struct cil_symtab_datum* datum = item->data; in __verify_no_self_reference_in_expr() local 432 rc = cil_verify_no_self_reference(FLAVOR(datum), datum, stack); in __verify_no_self_reference_in_expr() 444 static int cil_verify_no_self_reference(enum cil_flavor flavor, struct cil_symtab_datum *datum, str… in cil_verify_no_self_reference() argument 452 if (datum == prev) { in cil_verify_no_self_reference() 453 cil_tree_log(NODE(datum), CIL_ERR, "Self-reference found for %s", datum->name); in cil_verify_no_self_reference() 460 struct cil_userattribute *attr = (struct cil_userattribute *)datum; in cil_verify_no_self_reference() 461 cil_stack_push(stack, CIL_DATUM, datum); in cil_verify_no_self_reference() 467 struct cil_roleattribute *attr = (struct cil_roleattribute *)datum; in cil_verify_no_self_reference() 468 cil_stack_push(stack, CIL_DATUM, datum); in cil_verify_no_self_reference() [all …]
|
D | cil_fqn.c | 49 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)d; in __cil_fqn_qualify_decls() local 58 newlen = fqn_args->len + strlen(datum->name); in __cil_fqn_qualify_decls() 60 cil_log(CIL_INFO, "Fully qualified name for %s is too long\n", datum->name); in __cil_fqn_qualify_decls() 65 strcat(prefix, datum->name); in __cil_fqn_qualify_decls() 66 datum->fqn = cil_strpool_add(prefix); in __cil_fqn_qualify_decls() 77 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)block; in __cil_fqn_qualify_blocks() local 78 struct cil_tree_node *node = NODE(datum); in __cil_fqn_qualify_blocks() 87 newlen = fqn_args->len + strlen(datum->name) + 1; in __cil_fqn_qualify_blocks() 89 cil_log(CIL_INFO, "Fully qualified name for block %s is too long\n", datum->name); in __cil_fqn_qualify_blocks() 97 strcat(child_args.prefix, datum->name); in __cil_fqn_qualify_blocks()
|
D | cil_symtab.h | 62 struct cil_complex_symtab_datum *datum; member 74 void cil_symtab_datum_init(struct cil_symtab_datum *datum); 75 void cil_symtab_datum_destroy(struct cil_symtab_datum *datum); 76 void cil_symtab_datum_remove_node(struct cil_symtab_datum *datum, struct cil_tree_node *node); 77 int cil_symtab_insert(symtab_t *symtab, hashtab_key_t key, struct cil_symtab_datum *datum, struct c… 78 void cil_symtab_remove_datum(struct cil_symtab_datum *datum); 79 int cil_symtab_get_datum(symtab_t *symtab, char *key, struct cil_symtab_datum **datum); 85 …mplex_symtab *symtab, struct cil_complex_symtab_key *ckey, struct cil_complex_symtab_datum *datum);
|
D | cil_internal.h | 346 struct cil_symtab_datum datum; member 368 struct cil_symtab_datum datum; member 372 struct cil_symtab_datum datum; member 378 struct cil_symtab_datum datum; member 402 struct cil_symtab_datum datum; member 423 struct cil_symtab_datum datum; member 433 struct cil_symtab_datum datum; member 449 struct cil_symtab_datum datum; member 458 struct cil_symtab_datum datum; member 503 struct cil_symtab_datum datum; member [all …]
|
D | cil_resolve_ast.c | 81 struct cil_symtab_datum *datum = NULL; in __cil_insert_name() local 102 cil_symtab_get_datum(symtab, key, &datum); in __cil_insert_name() 103 if (datum != NULL) { in __cil_insert_name() 104 return (struct cil_name *)datum; in __cil_insert_name() 162 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms() local 170 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms() 175 class = (struct cil_class *)datum; in cil_resolve_classperms() 183 rc = __cil_resolve_perms(&class->perms, common_symtab, cp->perm_strs, &cp->perms, FLAVOR(datum)); in cil_resolve_classperms() 197 struct cil_symtab_datum *datum = NULL; in cil_resolve_classperms_set() local 199 rc = cil_resolve_name(current, cp_set->set_str, CIL_SYM_CLASSPERMSETS, extra_args, &datum); in cil_resolve_classperms_set() [all …]
|
D | cil.c | 431 (*db)->selftype->datum.name = CIL_KEY_SELF; in cil_db_init() 432 (*db)->selftype->datum.fqn = CIL_KEY_SELF; in cil_db_init() 1445 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string() 1457 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string() 1521 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals() 1557 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen() 1564 str1 = cat->datum.fqn; in __cil_level_strlen() 1569 str2 = cat->datum.fqn; in __cil_level_strlen() 1572 str_len += strlen(str1) + strlen(cat->datum.fqn) + 1; in __cil_level_strlen() 1574 str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2; in __cil_level_strlen() [all …]
|
D | cil_binary.c | 79 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 81 *sepol_user = hashtab_search(pdb->p_users.table, datum->fqn); in __cil_get_sepol_user_datum() 83 cil_log(CIL_INFO, "Failed to find user %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_user_datum() 90 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 92 *sepol_role = hashtab_search(pdb->p_roles.table, datum->fqn); in __cil_get_sepol_role_datum() 94 cil_log(CIL_INFO, "Failed to find role %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_role_datum() 101 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 103 *sepol_type = hashtab_search(pdb->p_types.table, datum->fqn); in __cil_get_sepol_type_datum() 105 cil_log(CIL_INFO, "Failed to find type %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_type_datum() 112 static int __cil_get_sepol_class_datum(policydb_t *pdb, struct cil_symtab_datum *datum, class_datum… in __cil_get_sepol_class_datum() argument [all …]
|
D | cil_policy.c | 128 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper() 135 if (strcmp(attr->datum.fqn, "cil_gen_require") != 0) { in __cil_gather_statements_helper() 151 if (strcmp(role->datum.fqn, "object_r") != 0) { in __cil_gather_statements_helper() 736 node = NODE(&common->datum); in cil_commons_to_policy() 739 fprintf(out, "common %s {", common->datum.fqn); in cil_commons_to_policy() 756 node = NODE(&class->datum); in cil_classes_to_policy() 758 fprintf(out, "class %s", class->datum.fqn); in cil_classes_to_policy() 760 fprintf(out, " inherits %s", class->common->datum.fqn); in cil_classes_to_policy() 871 fprintf(out, "sensitivity %s", sens->datum.fqn); in cil_sensitivities_to_policy() 879 fprintf(out, " %s", alias->datum.fqn); in cil_sensitivities_to_policy() [all …]
|
D | cil_post.c | 582 if (class->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 590 if (type->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 600 if (attr->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 609 if (role->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 618 if (user->datum.nodes->head->data == node) { in __cil_post_db_count_helper() 889 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap() argument 892 struct cil_tree_node *node = datum->nodes->head->data; in __cil_type_to_bitmap() 897 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; in __cil_type_to_bitmap() 904 struct cil_alias *alias = (struct cil_alias *)datum; in __cil_type_to_bitmap() 912 struct cil_type *type = (struct cil_type *)datum; in __cil_type_to_bitmap() [all …]
|
/third_party/selinux/checkpolicy/ |
D | module_compiler.c | 155 static int create_symbol(uint32_t symbol_type, hashtab_key_t key, hashtab_datum_t datum, in create_symbol() argument 165 ret = symtab_insert(policydbp, symbol_type, key, datum, scope, in create_symbol() 198 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol() argument 202 int ret = create_symbol(symbol_type, key, datum, dest_value, SCOPE_DECL); in declare_symbol() 256 role_datum_t *datum = NULL; in create_role() local 269 datum = malloc(sizeof(*datum)); in create_role() 270 if (datum == NULL) { in create_role() 276 role_datum_init(datum); in create_role() 277 datum->flavor = isattr; in create_role() 280 ret = declare_symbol(SYM_ROLES, id, datum, &value, &value); in create_role() [all …]
|
/third_party/musl/libc-test/src/api/ |
D | ndbm.c | 12 datum x; in f() 20 {int(*p)(DBM*,datum) = dbm_delete;} in f() 22 {datum(*p)(DBM*,datum) = dbm_fetch;} in f() 23 {datum(*p)(DBM*) = dbm_firstkey;} in f() 24 {datum(*p)(DBM*) = dbm_nextkey;} in f() 26 {int(*p)(DBM*,datum,datum,int) = dbm_store;} in f()
|
/third_party/selinux/libsepol/tests/ |
D | test-common.c | 60 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index() argument 62 common_datum_t *d = (common_datum_t *) datum; in common_test_index() 69 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index() argument 71 class_datum_t *d = (class_datum_t *) datum; in class_test_index() 79 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index() argument 81 role_datum_t *d = (role_datum_t *) datum; in role_test_index() 89 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index() argument 91 type_datum_t *d = (type_datum_t *) datum; in type_test_index() 103 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index() argument 105 user_datum_t *d = (user_datum_t *) datum; in user_test_index() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | database-gdbm.c | 35 static inline datum* datum_to_gdbm(datum *to, const pa_datum *from) { in datum_to_gdbm() 45 static inline pa_datum* datum_from_gdbm(pa_datum *to, const datum *from) { in datum_from_gdbm() 102 datum gdbm_key, gdbm_data; in pa_database_get() 116 datum gdbm_key, gdbm_data; in pa_database_set() 129 datum gdbm_key; in pa_database_unset() 138 datum gdbm_key; in pa_database_clear() 145 datum next; in pa_database_clear() 159 datum gdbm_key; in pa_database_size() 169 datum next; in pa_database_size() 182 datum gdbm_key, gdbm_data; in pa_database_first() [all …]
|
/third_party/openssl/test/ |
D | params_conversion_test.c | 31 void *ref, *datum; member 138 pc->datum = &datum_i32; in param_conversion_load_stanza() 147 pc->datum = &datum_i64; in param_conversion_load_stanza() 156 pc->datum = &datum_u32; in param_conversion_load_stanza() 165 pc->datum = &datum_u64; in param_conversion_load_stanza() 174 pc->datum = &datum_d; in param_conversion_load_stanza() 203 memset(pc->datum, 44, pc->size); in param_conversion_test() 205 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() 223 memset(pc->datum, 44, pc->size); in param_conversion_test() 225 || !TEST_mem_eq(pc->datum, pc->size, pc->ref, pc->size)) { in param_conversion_test() [all …]
|
/third_party/selinux/libsepol/src/ |
D | avtab.c | 94 avtab_datum_t * datum) in avtab_insert_node() argument 111 if (datum->xperms) /* else caller populates xperms */ in avtab_insert_node() 112 *xperms = *(datum->xperms); in avtab_insert_node() 114 newnode->datum.xperms = xperms; in avtab_insert_node() 119 newnode->datum.data = datum->data; in avtab_insert_node() 121 newnode->datum = *datum; in avtab_insert_node() 136 int avtab_insert(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert() argument 169 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert() 181 avtab_insert_nonunique(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert_nonunique() argument 208 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert_nonunique() [all …]
|
D | hierarchy.c | 43 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_helper() argument 45 int rc = avtab_insert(avtab, avtab_key, datum); in bounds_insert_helper() 58 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_rule() argument 64 rc = bounds_insert_helper(handle, avtab, avtab_key, datum); in bounds_insert_rule() 67 dup->data |= datum->data; in bounds_insert_rule() 77 data = dup->data & datum->data; in bounds_insert_rule() 104 avtab_datum_t datum; in bounds_expand_rule() local 110 datum.data = data; in bounds_expand_rule() 117 &avtab_key, &datum); in bounds_expand_rule() 137 n->key.target_class, n->datum.data); in bounds_expand_cond_rules() [all …]
|
D | policydb.c | 940 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_role_cache() argument 946 role = (role_datum_t *) datum; in policydb_role_cache() 958 __attribute__ ((unused)), hashtab_datum_t datum, in policydb_user_cache() argument 964 user = (user_datum_t *) datum; in policydb_user_cache() 1003 static int common_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in common_index() argument 1008 comdatum = (common_datum_t *) datum; in common_index() 1019 static int class_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in class_index() argument 1024 cladatum = (class_datum_t *) datum; in class_index() 1036 static int role_index(hashtab_key_t key, hashtab_datum_t datum, void *datap) in role_index() argument 1041 role = (role_datum_t *) datum; in role_index() [all …]
|
D | write.c | 194 cpu_to_le32(node->datum.data); in avtab_write_item() 200 buf32[items++] = cpu_to_le32(cur->datum.data); in avtab_write_item() 246 buf8 = cur->datum.xperms->specified; in avtab_write_item() 250 buf8 = cur->datum.xperms->driver; in avtab_write_item() 254 for (i = 0; i < ARRAY_SIZE(cur->datum.xperms->perms); i++) in avtab_write_item() 255 buf32[i] = cpu_to_le32(cur->datum.xperms->perms[i]); in avtab_write_item() 260 buf32[0] = cpu_to_le32(cur->datum.data); in avtab_write_item() 450 static int sens_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in sens_write() argument 458 levdatum = (level_datum_t *) datum; in sens_write() 478 static int cat_write(hashtab_key_t key, hashtab_datum_t datum, void *ptr) in cat_write() argument [all …]
|
D | link.c | 124 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in permission_copy_callback() argument 137 perm = (perm_datum_t *) datum; in permission_copy_callback() 245 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() argument 254 cladatum = (class_datum_t *) datum; in class_copy_callback() 348 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback() argument 356 role = (role_datum_t *) datum; in role_copy_callback() 438 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() argument 446 type = (type_datum_t *) datum; in type_copy_callback() 533 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback() argument 541 user = (user_datum_t *) datum; in user_copy_callback() [all …]
|
D | hashtab.c | 104 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() argument 130 newnode->datum = datum; in hashtab_insert() 170 destroy(cur->key, cur->datum, args); in hashtab_remove() 193 return cur->datum; in hashtab_search() 234 ret = apply(cur->key, cur->datum, args); in hashtab_map()
|
D | expand.c | 106 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() argument 115 type = (type_datum_t *) datum; in type_copy_callback() 176 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback() argument 185 type = (type_datum_t *) datum; in attr_convert_callback() 219 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback() argument 228 perm = (perm_datum_t *) datum; in perm_copy_callback() 256 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback() argument 265 common = (common_datum_t *) datum; in common_copy_callback() 445 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() argument 454 class = (class_datum_t *) datum; in class_copy_callback() [all …]
|
/third_party/node/test/parallel/ |
D | test-stringbytes-external.js | 92 const datum = b; constant 93 const slice = datum.slice(0, PRE_HALF_APEX + j); 94 const slice2 = datum.slice(0, PRE_HALF_APEX + j + 2); 106 assert.strictEqual(datum[i], decoded[i]); 113 const datum = b; constant 114 const slice = datum.slice(0, PRE_3OF4_APEX + j); 115 const slice2 = datum.slice(0, PRE_3OF4_APEX + j + 2); 127 assert.strictEqual(datum[i], decoded[i]);
|
/third_party/selinux/checkpolicy/test/ |
D | dispol.c | 87 static int render_av_rule(avtab_key_t * key, avtab_datum_t * datum, uint32_t what, in render_av_rule() argument 114 render_access_mask(datum->data, key, p, fp); in render_av_rule() 120 render_access_mask(datum->data, key, p, fp); in render_av_rule() 128 render_access_mask(~datum->data, key, p, fp); in render_av_rule() 135 render_type(datum->data, p, fp); in render_av_rule() 141 render_type(datum->data, p, fp); in render_av_rule() 147 render_type(datum->data, p, fp); in render_av_rule() 158 fprintf(fp, "%s;\n", sepol_extended_perms_to_string(datum->xperms)); in render_av_rule() 174 render_av_rule(&cur->key, &cur->datum, what, p, fp); in display_avtab() 239 render_av_rule(&av_cur->node->key, &av_cur->node->datum, in display_cond_expressions() [all …]
|