Home
last modified time | relevance | path

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

/external/selinux/libsepol/include/sepol/policydb/
Davtab.h70 } avtab_key_t; typedef
90 avtab_key_t key;
108 extern int avtab_insert(avtab_t * h, avtab_key_t * k, avtab_datum_t * d);
110 extern avtab_datum_t *avtab_search(avtab_t * h, avtab_key_t * k);
115 int (*apply) (avtab_key_t * k,
122 int (*insert) (avtab_t * a, avtab_key_t * k,
127 extern avtab_ptr_t avtab_insert_nonunique(avtab_t * h, avtab_key_t * key,
131 avtab_key_t * key,
135 extern avtab_ptr_t avtab_search_node(avtab_t * h, avtab_key_t * key);
Dconditional.h115 extern avtab_datum_t *cond_av_list_search(avtab_key_t * key,
136 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()
325 avtab_key_t *k, policydb_t *p) in check_assertion_extended_permissions_avtab()
328 avtab_key_t tmp_key; in check_assertion_extended_permissions_avtab()
337 memcpy(&tmp_key, k, sizeof(avtab_key_t)); in check_assertion_extended_permissions_avtab()
383 avtab_key_t *k, policydb_t *p) in check_assertion_extended_permissions()
450 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()
166 static int bounds_expand_rule_callback(avtab_key_t *k, avtab_datum_t *d, in bounds_expand_rule_callback()
262 avtab_key_t *avtab_key, uint32_t data) in bounds_not_covered()
302 avtab_key_t avtab_key; in bounds_check_rule()
373 avtab_key_t *key = &ap->key; in bounds_check_cond_rules()
398 static int bounds_check_rule_callback(avtab_key_t *k, avtab_datum_t *d, in bounds_check_rule_callback()
Dconditional.c626 __attribute__ ((unused)), avtab_key_t * k, in cond_insertf()
878 void cond_compute_av(avtab_t * ctab, avtab_key_t * key, in cond_compute_av()
906 avtab_datum_t *cond_av_list_search(avtab_key_t * key, in cond_av_list_search()
Dexpand.c1605 avtab_t * avtab, avtab_key_t * key, in find_avtab_node()
1677 avtab_key_t avkey; in expand_terule_helper()
1786 avtab_key_t avkey; in expand_avrule_helper()
3171 static int expand_avtab_insert(avtab_t * a, avtab_key_t * k, avtab_datum_t * d) in expand_avtab_insert()
3239 static int expand_avtab_node(avtab_key_t * k, avtab_datum_t * d, void *args) in expand_avtab_node()
3250 avtab_key_t newkey; in expand_avtab_node()
3323 avtab_key_t * k, avtab_datum_t * d) in expand_cond_insert()
3372 avtab_key_t *k = &node->key; in expand_cond_av_node()
3380 avtab_key_t newkey; in expand_cond_av_node()
Dservices.c842 avtab_key_t avkey; in context_struct_compute_av()
1306 avtab_key_t avkey; in sepol_compute_sid()
/external/selinux/policycoreutils/sepolgen-ifgen/
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.c925 int __cil_cond_insert_rule(avtab_t *avtab, avtab_key_t *avtab_key, avtab_datum_t *avtab_datum, cond… in __cil_cond_insert_rule()
960 avtab_datum_t *cil_cond_av_list_search(avtab_key_t *key, cond_av_list_t *cond_list) in cil_cond_av_list_search()
979 avtab_key_t avtab_key; in __cil_insert_type_rule()
1274 avtab_key_t avtab_key; in __cil_insert_avrule()
1556 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_policydb()
1563 avtab_key = (avtab_key_t *)k; in __cil_avrulex_ioctl_to_policydb()
1613 avtab_key_t *avtab_key; in __cil_avrulex_ioctl_to_hashtable()
4012 avtab_key_t *k = (avtab_key_t *)key; in avrulex_hash()
4053 avtab_key_t *a = (avtab_key_t *)key1; in avrulex_compare()
4054 avtab_key_t *b = (avtab_key_t *)key2; in avrulex_compare()
[all …]
/external/selinux/checkpolicy/
Dcheckpolicy.c161 static int insert_type_rule(avtab_key_t * k, avtab_datum_t * d, in insert_type_rule()
197 static int create_type_rules(avtab_key_t * k, avtab_datum_t * d, void *args) in create_type_rules()