Home
last modified time | relevance | path

Searched refs:datum (Results 1 – 25 of 76) sorted by relevance

1234

/external/selinux/libsepol/cil/src/
Dcil_symtab.c62 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 …]
Dcil_copy_ast.c101 char *key = orig->datum.name; in cil_copy_block()
102 struct cil_symtab_datum *datum = NULL; in cil_copy_block() local
104 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_block()
105 if (datum == NULL) { in cil_copy_block()
110 *copy = datum;; in cil_copy_block()
148 char *key = orig->datum.name; in cil_copy_policycap()
149 struct cil_symtab_datum *datum = NULL; in cil_copy_policycap() local
151 cil_symtab_get_datum(symtab, key, &datum); in cil_copy_policycap()
152 if (datum == NULL) { in cil_copy_policycap()
157 *copy = datum; in cil_copy_policycap()
[all …]
Dcil_fqn.c48 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)d; in __cil_fqn_qualify_decls() local
57 newlen = fqn_args->len + strlen(datum->name); in __cil_fqn_qualify_decls()
59 cil_log(CIL_INFO, "Fully qualified name for %s is too long\n", datum->name); in __cil_fqn_qualify_decls()
64 strcat(prefix, datum->name); in __cil_fqn_qualify_decls()
65 datum->fqn = cil_strpool_add(prefix); in __cil_fqn_qualify_decls()
76 struct cil_symtab_datum *datum = (struct cil_symtab_datum *)block; in __cil_fqn_qualify_blocks() local
77 struct cil_tree_node *node = NODE(datum); in __cil_fqn_qualify_blocks()
85 int newlen = fqn_args->len + strlen(datum->name) + 1; in __cil_fqn_qualify_blocks()
87 cil_log(CIL_INFO, "Fully qualified name for block %s is too long\n", datum->name); in __cil_fqn_qualify_blocks()
95 strcat(child_args.prefix, datum->name); in __cil_fqn_qualify_blocks()
Dcil_tree.c139 struct cil_symtab_datum *datum; in cil_tree_node_destroy() local
146 datum = (*node)->data; in cil_tree_node_destroy()
147 cil_symtab_datum_remove_node(datum, *node); in cil_tree_node_destroy()
148 if (datum->nodes == NULL) { in cil_tree_node_destroy()
437 cil_log(CIL_INFO, " %s", ((struct cil_perm *)current_perm->data)->datum.name); in cil_tree_print_perms_list()
439 cil_log(CIL_INFO, " %s", ((struct cil_perm*)current_perm->data)->datum.name); in cil_tree_print_perms_list()
511 cil_log(CIL_INFO, " %s", level->sens->datum.name); in cil_tree_print_level()
546 cil_log(CIL_INFO, " %s", context->user->datum.name); in cil_tree_print_context()
552 cil_log(CIL_INFO, " %s", context->role->datum.name); in cil_tree_print_context()
592 cil_log(CIL_INFO, "BLOCK: %s\n", block->datum.name); in cil_tree_print_node()
[all …]
Dcil_symtab.h62 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);
Dcil_verify.c318 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list) in cil_verify_no_self_reference() argument
325 if (d == datum) { in cil_verify_no_self_reference()
326 cil_log(CIL_ERR,"Self-reference found for %s\n",datum->name); in cil_verify_no_self_reference()
330 int rc = cil_verify_no_self_reference(datum, i->data); in cil_verify_no_self_reference()
380 …cil_log(CIL_ERR, "SID %s not in sidorder statement at line %d of %s\n", sid->datum.name, node->lin… in __cil_verify_ordered_node_helper()
386 …cil_log(CIL_ERR, "Class %s not in classorder statement at line %d of %s\n", class->datum.name, nod… in __cil_verify_ordered_node_helper()
392 …cil_log(CIL_ERR, "Category %s not in categoryorder statement at line %d of %s\n", cat->datum.name,… in __cil_verify_ordered_node_helper()
398 …nsitivity %s not in sensitivityorder statement at line %d of %s\n", sens->datum.name, node->line, … in __cil_verify_ordered_node_helper()
432 struct cil_tree_node *node = sid->datum.nodes->head->data; in __cil_verify_initsids()
433 …cil_log(CIL_ERR, "No context assigned to SID %s declared at line %d in %s\n",sid->datum.name, node… in __cil_verify_initsids()
[all …]
Dcil_internal.h322 struct cil_symtab_datum datum; member
343 struct cil_symtab_datum datum; member
348 struct cil_symtab_datum datum; member
354 struct cil_symtab_datum datum; member
378 struct cil_symtab_datum datum; member
399 struct cil_symtab_datum datum; member
409 struct cil_symtab_datum datum; member
425 struct cil_symtab_datum datum; member
434 struct cil_symtab_datum datum; member
479 struct cil_symtab_datum datum; member
[all …]
Dcil.c267 (*db)->selftype->datum.name = CIL_KEY_SELF; in cil_db_init()
268 (*db)->selftype->datum.fqn = CIL_KEY_SELF; in cil_db_init()
1192 …str_len += strlen("user ") + strlen(user->datum.fqn) + strlen(" prefix ") + strlen(userprefix->pre… in cil_userprefixes_to_string()
1204 buf_pos = snprintf(str_tmp, str_len, "user %s prefix %s;\n", user->datum.fqn, in cil_userprefixes_to_string()
1269 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals()
1303 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1310 str1 = cat->datum.fqn; in __cil_level_strlen()
1315 str2 = cat->datum.fqn; in __cil_level_strlen()
1318 str_len += strlen(str1) + strlen(cat->datum.fqn) + 1; in __cil_level_strlen()
1320 str_len += strlen(str1) + strlen(str2) + strlen(cat->datum.fqn) + 2; in __cil_level_strlen()
[all …]
Dcil_resolve_ast.c77 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()
[all …]
Dcil_binary.c81 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
[all …]
Dcil_post.c344 if (class->datum.nodes->head->data == node) { in __cil_post_db_count_helper()
352 if (type->datum.nodes->head->data == node) { in __cil_post_db_count_helper()
362 if (attr->datum.nodes->head->data == node) { in __cil_post_db_count_helper()
371 if (role->datum.nodes->head->data == node) { in __cil_post_db_count_helper()
380 if (user->datum.nodes->head->data == node) { in __cil_post_db_count_helper()
623 static int __cil_type_to_bitmap(struct cil_symtab_datum *datum, ebitmap_t *bitmap, struct cil_db *d… in __cil_type_to_bitmap() argument
626 struct cil_tree_node *node = datum->nodes->head->data; in __cil_type_to_bitmap()
631 struct cil_typeattribute *attr = (struct cil_typeattribute *)datum; in __cil_type_to_bitmap()
638 struct cil_alias *alias = (struct cil_alias *)datum; in __cil_type_to_bitmap()
646 struct cil_type *type = (struct cil_type *)datum; in __cil_type_to_bitmap()
[all …]
/external/selinux/libsepol/tests/
Dtest-common.c57 static int common_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in common_test_index() argument
59 common_datum_t *d = (common_datum_t *) datum; in common_test_index()
66 static int class_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in class_test_index() argument
68 class_datum_t *d = (class_datum_t *) datum; in class_test_index()
76 static int role_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in role_test_index() argument
78 role_datum_t *d = (role_datum_t *) datum; in role_test_index()
86 static int type_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in type_test_index() argument
88 type_datum_t *d = (type_datum_t *) datum; in type_test_index()
100 static int user_test_index(hashtab_key_t key, hashtab_datum_t datum, void *data) in user_test_index() argument
102 user_datum_t *d = (user_datum_t *) datum; in user_test_index()
[all …]
/external/selinux/libsepol/src/
Dgenbools.c76 struct cond_bool_datum *datum; local
96 datum = hashtab_search(policydb->p_bools.table, name);
97 if (!datum) {
102 if (datum->state != val) {
103 datum->state = val;
126 datum =
129 if (!datum) {
134 if (datum->state != val) {
135 datum->state = val;
215 struct cond_bool_datum *datum; local
[all …]
Dhashtab.c66 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() argument
90 newnode->datum = datum; in hashtab_insert()
130 destroy(cur->key, cur->datum, args); in hashtab_remove()
136 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() argument
156 destroy(cur->key, cur->datum, args); in hashtab_replace()
158 cur->datum = datum; in hashtab_replace()
165 newnode->datum = datum; in hashtab_replace()
195 return cur->datum; in hashtab_search()
235 ret = apply(cur->key, cur->datum, args); in hashtab_map()
263 ret = apply(cur->key, cur->datum, args); in hashtab_map_remove_on_error()
[all …]
Dhierarchy.c43 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()
119 &avtab_key, &datum); in bounds_expand_rule()
131 &avtab_key, &datum); in bounds_expand_rule()
[all …]
Davtab.c93 avtab_datum_t * datum) in avtab_insert_node() argument
110 if (datum->xperms) /* else caller populates xperms */ in avtab_insert_node()
111 *xperms = *(datum->xperms); in avtab_insert_node()
113 newnode->datum.xperms = xperms; in avtab_insert_node()
118 newnode->datum.data = datum->data; in avtab_insert_node()
120 newnode->datum = *datum; in avtab_insert_node()
135 int avtab_insert(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert() argument
168 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert()
180 avtab_insert_nonunique(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert_nonunique() argument
207 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert_nonunique()
[all …]
Dlink.c123 static int permission_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in permission_copy_callback() argument
136 perm = (perm_datum_t *) datum; in permission_copy_callback()
243 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() argument
252 cladatum = (class_datum_t *) datum; in class_copy_callback()
346 static int role_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in role_copy_callback() argument
354 role = (role_datum_t *) datum; in role_copy_callback()
436 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() argument
444 type = (type_datum_t *) datum; in type_copy_callback()
531 static int user_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in user_copy_callback() argument
539 user = (user_datum_t *) datum; in user_copy_callback()
[all …]
Dexpand.c74 static int type_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in type_copy_callback() argument
83 type = (type_datum_t *) datum; in type_copy_callback()
144 static int attr_convert_callback(hashtab_key_t key, hashtab_datum_t datum, in attr_convert_callback() argument
153 type = (type_datum_t *) datum; in attr_convert_callback()
187 static int perm_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in perm_copy_callback() argument
196 perm = (perm_datum_t *) datum; in perm_copy_callback()
224 static int common_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in common_copy_callback() argument
233 common = (common_datum_t *) datum; in common_copy_callback()
410 static int class_copy_callback(hashtab_key_t key, hashtab_datum_t datum, in class_copy_callback() argument
419 class = (class_datum_t *) datum; in class_copy_callback()
[all …]
/external/selinux/policycoreutils/newrole/
Dhashtab.c45 int hashtab_insert(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum) in hashtab_insert() argument
69 newnode->datum = datum; in hashtab_insert()
109 destroy(cur->key, cur->datum, args); in hashtab_remove()
115 int hashtab_replace(hashtab_t h, hashtab_key_t key, hashtab_datum_t datum, in hashtab_replace() argument
135 destroy(cur->key, cur->datum, args); in hashtab_replace()
137 cur->datum = datum; in hashtab_replace()
144 newnode->datum = datum; in hashtab_replace()
174 return cur->datum; in hashtab_search()
214 ret = apply(cur->key, cur->datum, args); in hashtab_map()
242 ret = apply(cur->key, cur->datum, args); in hashtab_map_remove_on_error()
[all …]
/external/autotest/client/site_tests/graphics_WebGLManyPlanetsDeep/
Dgraphics_WebGLManyPlanetsDeep.py67 for datum in frame_data:
68 if not datum or datum['seq'] in self.frame_data:
70 self.frame_data[datum['seq']] = {
71 'start_time': datum['startTime'],
72 'frame_elapsed_time': datum['frameElapsedTime'],
73 'js_elapsed_time': datum['jsElapsedTime']
/external/selinux/checkpolicy/
Dmodule_compiler.c128 hashtab_key_t key, hashtab_datum_t datum, in declare_symbol() argument
138 retval = symtab_insert(policydbp, symbol_type, key, datum, in declare_symbol()
623 hashtab_key_t key, hashtab_datum_t datum, in require_symbol() argument
633 retval = symtab_insert(policydbp, symbol_type, key, datum, in require_symbol()
656 ((type_datum_t *) datum)->flavor; in require_symbol()
723 static int perm_destroy(hashtab_key_t key, hashtab_datum_t datum, void *p in perm_destroy() argument
728 free(datum); in perm_destroy()
745 class_datum_t *datum = NULL; in require_class() local
762 if ((datum = calloc(1, sizeof(*datum))) == NULL || in require_class()
763 symtab_init(&datum->permissions, PERM_SYMTAB_SIZE)) { in require_class()
[all …]
/external/bison/lib/
Dobstack.h316 # define obstack_1grow(OBSTACK,datum) \ argument
321 obstack_1grow_fast (__o, datum); \
328 # define obstack_ptr_grow(OBSTACK,datum) \ argument
333 obstack_ptr_grow_fast (__o, datum); }) \
335 # define obstack_int_grow(OBSTACK,datum) \ argument
340 obstack_int_grow_fast (__o, datum); })
448 # define obstack_1grow(h,datum) \ argument
451 obstack_1grow_fast (h, datum))
453 # define obstack_ptr_grow(h,datum) \ argument
456 obstack_ptr_grow_fast (h, datum))
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
DS_V_G_.py191 datum = struct.pack(">H",numEntries)
192 entryList.append(datum)
193 curOffset = len(datum) + doc_index_entry_format_0Size*numEntries
212 datum = struct.pack(">H", numColorParams)
213 dataList.append(datum)
215 datum = struct.pack(">H", uiNameId)
216 dataList.append(datum)
218 datum = struct.pack(">H", numColorPalettes)
219 dataList.append(datum)
221 datum = struct.pack(">H", colorPalette.uiNameID)
[all …]
/external/selinux/policycoreutils/sepolgen-ifgen/
Dsepolgen-ifgen-attr-helper.c41 static int perm_name(hashtab_key_t key, hashtab_datum_t datum, void *data) in perm_name() argument
46 perdatum = (perm_datum_t *) datum; in perm_name()
111 int output_avrule(avtab_key_t *key, avtab_datum_t *datum, void *args) in output_avrule() argument
122 render_access_mask(datum->data, key, cb_data->policy, cb_data->fp); in output_avrule()
128 static int attribute_callback(hashtab_key_t key, hashtab_datum_t datum, void *datap) in attribute_callback() argument
131 type_datum_t *t = (type_datum_t *)datum; in attribute_callback()
/external/selinux/checkpolicy/test/
Ddispol.c87 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 …]

1234