Home
last modified time | relevance | path

Searched refs:avtab_key_t (Results 1 – 14 of 14) sorted by relevance

/external/selinux/libsepol/include/sepol/policydb/
Davtab.h71 } avtab_key_t; typedef
91 avtab_key_t key;
109 extern int avtab_insert(avtab_t * h, avtab_key_t * k, avtab_datum_t * d);
111 extern avtab_datum_t *avtab_search(avtab_t * h, avtab_key_t * k);
116 int (*apply) (avtab_key_t * k,
123 int (*insert) (avtab_t * a, avtab_key_t * k,
128 extern avtab_ptr_t avtab_insert_nonunique(avtab_t * h, avtab_key_t * key,
132 avtab_key_t * key,
136 extern avtab_ptr_t avtab_search_node(avtab_t * h, avtab_key_t * key);
Dconditional.h116 extern avtab_datum_t *cond_av_list_search(avtab_key_t * key,
137 extern void cond_compute_av(avtab_t * ctab, avtab_key_t * key,
/external/selinux/libsepol/src/
Davtab.c92 avtab_insert_node(avtab_t * h, int hvalue, avtab_ptr_t prev, avtab_key_t * key, in avtab_insert_node()
135 int avtab_insert(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert()
180 avtab_insert_nonunique(avtab_t * h, avtab_key_t * key, avtab_datum_t * datum) in avtab_insert_nonunique()
212 avtab_datum_t *avtab_search(avtab_t * h, avtab_key_t * key) in avtab_search()
247 avtab_ptr_t avtab_search_node(avtab_t * h, avtab_key_t * key) in avtab_search_node()
333 int (*apply) (avtab_key_t * k, in avtab_map()
434 int (*insertf) (avtab_t * a, avtab_key_t * k, in avtab_read_item()
440 avtab_key_t key; in avtab_read_item()
447 memset(&key, 0, sizeof(avtab_key_t)); in avtab_read_item()
579 static int avtab_insertf(avtab_t * a, avtab_key_t * k, avtab_datum_t * d, in avtab_insertf()
Dassertion.c144 avtab_key_t *k, avtab_t *avtab) in report_assertion_extended_permissions()
147 avtab_key_t tmp_key; in report_assertion_extended_permissions()
157 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in report_assertion_extended_permissions()
211 static int report_assertion_avtab_matches(avtab_key_t *k, avtab_datum_t *d, void *args) in report_assertion_avtab_matches()
333 avtab_key_t *k, policydb_t *p) in check_assertion_extended_permissions_avtab()
336 avtab_key_t tmp_key; in check_assertion_extended_permissions_avtab()
345 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in check_assertion_extended_permissions_avtab()
391 avtab_key_t *k, policydb_t *p) in check_assertion_extended_permissions()
466 static int check_assertion_avtab_match(avtab_key_t *k, avtab_datum_t *d, void *args) in check_assertion_avtab_match()
Dhierarchy.c43 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_helper()
58 avtab_key_t *avtab_key, avtab_datum_t *datum) in bounds_insert_rule()
103 avtab_key_t avtab_key; in bounds_expand_rule()
154 static int bounds_expand_rule_callback(avtab_key_t *k, avtab_datum_t *d, in bounds_expand_rule_callback()
250 avtab_key_t *avtab_key, uint32_t data) in bounds_not_covered()
290 avtab_key_t avtab_key; in bounds_check_rule()
337 avtab_key_t *key = &ap->key; in bounds_check_cond_rules()
362 static int bounds_check_rule_callback(avtab_key_t *k, avtab_datum_t *d, in bounds_check_rule_callback()
Dconditional.c623 __attribute__ ((unused)), avtab_key_t * k, in cond_insertf()
875 void cond_compute_av(avtab_t * ctab, avtab_key_t * key, in cond_compute_av()
903 avtab_datum_t *cond_av_list_search(avtab_key_t * key, in cond_av_list_search()
Dexpand.c1625 avtab_t * avtab, avtab_key_t * key, in find_avtab_node()
1708 avtab_key_t avkey; in expand_terule_helper()
1840 avtab_key_t avkey; in expand_avrule_helper()
3226 static int expand_avtab_insert(avtab_t * a, avtab_key_t * k, avtab_datum_t * d) in expand_avtab_insert()
3294 static int expand_avtab_node(avtab_key_t * k, avtab_datum_t * d, void *args) in expand_avtab_node()
3305 avtab_key_t newkey; in expand_avtab_node()
3378 avtab_key_t * k, avtab_datum_t * d) in expand_cond_insert()
3427 avtab_key_t *k = &node->key; in expand_cond_av_node()
3435 avtab_key_t newkey; in expand_cond_av_node()
Dkernel_to_conf.c1623 static char *avtab_node_to_str(struct policydb *pdb, avtab_key_t *key, avtab_datum_t *datum) in avtab_node_to_str()
1712 static int map_avtab_write_helper(avtab_key_t *key, avtab_datum_t *datum, void *args) in map_avtab_write_helper()
1961 avtab_key_t *key; in write_cond_av_list_to_conf()
Dkernel_to_cil.c1653 static char *avtab_node_to_str(struct policydb *pdb, avtab_key_t *key, avtab_datum_t *datum) in avtab_node_to_str()
1744 static int map_avtab_write_helper(avtab_key_t *key, avtab_datum_t *datum, void *args) in map_avtab_write_helper()
1993 avtab_key_t *key; in write_cond_av_list_to_cil()
Dservices.c904 avtab_key_t avkey; in context_struct_compute_av()
1370 avtab_key_t avkey; in sepol_compute_sid()
/external/selinux/python/audit2allow/
Dsepolgen-ifgen-attr-helper.c56 int render_access_mask(uint32_t av, avtab_key_t *key, policydb_t *policydbp, in render_access_mask()
88 static int render_key(avtab_key_t *key, policydb_t *p, FILE *fp) in render_key()
111 int output_avrule(avtab_key_t *key, avtab_datum_t *datum, void *args) in output_avrule()
/external/selinux/checkpolicy/test/
Ddispol.c45 int render_access_mask(uint32_t mask, avtab_key_t * key, policydb_t * p, in render_access_mask()
63 int render_key(avtab_key_t * key, policydb_t * p, FILE * fp) in render_key()
87 int render_av_rule(avtab_key_t * key, avtab_datum_t * datum, uint32_t what, in render_av_rule()
/external/selinux/libsepol/cil/src/
Dcil_binary.c939 int __cil_cond_insert_rule(avtab_t *avtab, avtab_key_t *avtab_key, avtab_datum_t *avtab_datum, cond… in __cil_cond_insert_rule()
974 avtab_datum_t *cil_cond_av_list_search(avtab_key_t *key, cond_av_list_t *cond_list) in cil_cond_av_list_search()
993 avtab_key_t avtab_key; in __cil_insert_type_rule()
1312 avtab_key_t avtab_key; in __cil_insert_avrule()
1680 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_policydb()
1687 avtab_key = (avtab_key_t *)k; in __cil_avrulex_ioctl_to_policydb()
1737 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_hashtable()
4300 const avtab_key_t *k = (const avtab_key_t *)key; in avrulex_hash()
4341 const avtab_key_t *a = (const avtab_key_t *)key1; in avrulex_compare()
4342 const avtab_key_t *b = (const avtab_key_t *)key2; in avrulex_compare()
[all …]
/external/selinux/checkpolicy/
Dcheckpolicy.c167 static int insert_type_rule(avtab_key_t * k, avtab_datum_t * d, in insert_type_rule()
203 static int create_type_rules(avtab_key_t * k, avtab_datum_t * d, void *args) in create_type_rules()