Searched refs:cladatum (Results 1 – 10 of 10) sorted by relevance
/third_party/selinux/checkpolicy/ |
D | checkpolicy.c | 389 class_datum_t *cladatum; in main() local 771 cladatum = in main() 775 cladatum = in main() 780 if (!cladatum) { in main() 784 tclass = cladatum->s.value; in main() 787 if (!cladatum->comdatum && !cladatum->permissions.nprim) { in main() 800 hashtab_map(cladatum-> in main() 804 if (!ret && cladatum->comdatum) { in main() 807 (cladatum-> in main() 889 cladatum = in main() [all …]
|
D | policy_define.c | 340 class_datum_t *cladatum; in read_classes() local 347 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes() 348 if (!cladatum) { in read_classes() 354 if (ebitmap_set_bit(e_classes, cladatum->s.value - 1, TRUE)) { in read_classes() 365 class_datum_t *cladatum; in define_default_user() local 378 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user() 379 if (!cladatum) { in define_default_user() 383 if (cladatum->default_user && cladatum->default_user != which) { in define_default_user() 387 cladatum->default_user = which; in define_default_user() 397 class_datum_t *cladatum; in define_default_role() local [all …]
|
D | module_compiler.c | 773 static void class_datum_destroy(class_datum_t * cladatum) in class_datum_destroy() argument 775 if (cladatum != NULL) { in class_datum_destroy() 776 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in class_datum_destroy() 777 hashtab_destroy(cladatum->permissions.table); in class_datum_destroy() 778 free(cladatum); in class_datum_destroy() 1187 const class_datum_t *cladatum = in is_perm_in_scope() local 1191 if (cladatum == NULL) { in is_perm_in_scope() 1194 perdatum = (perm_datum_t *) hashtab_search(cladatum->permissions.table, in is_perm_in_scope() 1199 return is_perm_in_stack(perdatum->s.value, cladatum->s.value, in is_perm_in_scope()
|
/third_party/selinux/libsepol/src/ |
D | avrule_block.c | 197 class_datum_t *cladatum; in is_perm_enabled() local 202 cladatum = in is_perm_enabled() 204 if (cladatum == NULL) { in is_perm_enabled() 207 perm = hashtab_search(cladatum->permissions.table, perm_id); in is_perm_enabled() 208 if (perm == NULL && cladatum->comdatum != 0) { in is_perm_enabled() 212 hashtab_search(cladatum->comdatum->permissions.table, in is_perm_enabled()
|
D | util.c | 90 class_datum_t *cladatum; in sepol_av_to_string() local 97 cladatum = policydbp->class_val_to_struct[tclass - 1]; in sepol_av_to_string() 99 for (i = 0; i < cladatum->permissions.nprim; i++) { in sepol_av_to_string() 102 rc = hashtab_map(cladatum->permissions.table, in sepol_av_to_string() 104 if (!rc && cladatum->comdatum) { in sepol_av_to_string() 105 rc = hashtab_map(cladatum->comdatum-> in sepol_av_to_string()
|
D | services.c | 1334 struct class_datum *cladatum = NULL; in sepol_compute_sid() local 1356 cladatum = policydb->class_val_to_struct[tclass - 1]; in sepol_compute_sid() 1364 if (cladatum && cladatum->default_user == DEFAULT_TARGET) { in sepol_compute_sid() 1379 if (cladatum && cladatum->default_role == DEFAULT_SOURCE) { in sepol_compute_sid() 1381 } else if (cladatum && cladatum->default_role == DEFAULT_TARGET) { in sepol_compute_sid() 1391 if (cladatum && cladatum->default_type == DEFAULT_SOURCE) { in sepol_compute_sid() 1393 } else if (cladatum && cladatum->default_type == DEFAULT_TARGET) { in sepol_compute_sid() 1536 class_datum_t *cladatum, *cladatum2; in validate_class() local 1539 cladatum = (class_datum_t *) datum; in validate_class() 1547 if (cladatum->s.value != cladatum2->s.value) { in validate_class() [all …]
|
D | policydb.c | 1022 class_datum_t *cladatum; in class_index() local 1024 cladatum = (class_datum_t *) datum; in class_index() 1026 if (!value_isvalid(cladatum->s.value, p->p_classes.nprim)) in class_index() 1028 if (p->p_class_val_to_name[cladatum->s.value - 1] != NULL) in class_index() 1030 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; in class_index() 1031 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; in class_index() 1325 class_datum_t *cladatum; in class_destroy() local 1330 cladatum = (class_datum_t *) datum; in class_destroy() 1331 if (cladatum == NULL) { in class_destroy() 1334 (void)hashtab_map(cladatum->permissions.table, perm_destroy, 0); in class_destroy() [all …]
|
D | write.c | 1029 class_datum_t *cladatum; in class_write() local 1037 cladatum = (class_datum_t *) datum; in class_write() 1040 if (cladatum->comkey) in class_write() 1041 len2 = strlen(cladatum->comkey); in class_write() 1046 for (c = cladatum->constraints; c; c = c->next) { in class_write() 1053 buf[items++] = cpu_to_le32(cladatum->s.value); in class_write() 1054 buf[items++] = cpu_to_le32(cladatum->permissions.nprim); in class_write() 1055 if (cladatum->permissions.table) in class_write() 1056 buf[items++] = cpu_to_le32(cladatum->permissions.table->nel); in class_write() 1068 if (cladatum->comkey) { in class_write() [all …]
|
D | link.c | 249 class_datum_t *cladatum, *new_class = NULL; in class_copy_callback() local 254 cladatum = (class_datum_t *) datum; in class_copy_callback() 321 state->cur->map[SYM_CLASSES][cladatum->s.value - 1] = in class_copy_callback() 325 state->src_class = cladatum; in class_copy_callback() 330 ret = class_copy_default_new_object(state, cladatum, new_class); in class_copy_callback() 335 hashtab_map(cladatum->permissions.table, permission_copy_callback, in class_copy_callback() 1968 class_datum_t *cladatum; in is_decl_requires_met() local 1974 cladatum = pol->class_val_to_struct[i]; in is_decl_requires_met() 1989 (void)hashtab_map(cladatum->permissions.table, find_perm, in is_decl_requires_met() 1991 if (fparg.key == NULL && cladatum->comdatum != NULL) { in is_decl_requires_met() [all …]
|
D | mls.c | 611 struct class_datum *cladatum; in mls_compute_sid() local 628 cladatum = policydb->class_val_to_struct[tclass - 1]; in mls_compute_sid() 629 if (cladatum) in mls_compute_sid() 630 default_range = cladatum->default_range; in mls_compute_sid()
|