/external/libsepol/src/ |
util.c | 82 class_datum_t *cladatum; local 88 cladatum = policydbp->class_val_to_struct[tclass - 1]; 90 for (i = 0; i < cladatum->permissions.nprim; i++) { 93 rc = hashtab_map(cladatum->permissions.table, 95 if (!rc && cladatum->comdatum) { 96 rc = hashtab_map(cladatum->comdatum->
|
avrule_block.c | 180 class_datum_t *cladatum; local 185 cladatum = 187 if (cladatum == NULL) { 190 perm = hashtab_search(cladatum->permissions.table, perm_id); 191 if (perm == NULL && cladatum->comdatum != 0) { 195 hashtab_search(cladatum->comdatum->permissions.table,
|
policydb.c | 802 class_datum_t *cladatum; local 804 cladatum = (class_datum_t *) datum; 806 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim) 808 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key; 809 p->class_val_to_struct[cladatum->s.value - 1] = cladatum; 1086 class_datum_t *cladatum; local 1092 cladatum = (class_datum_t *) datum; 1093 if (cladatum == NULL) 2018 class_datum_t *cladatum; local [all...] |
write.c | 912 class_datum_t *cladatum; local 920 cladatum = (class_datum_t *) datum; 923 if (cladatum->comkey) 924 len2 = strlen(cladatum->comkey); 929 for (c = cladatum->constraints; c; c = c->next) { 936 buf[items++] = cpu_to_le32(cladatum->s.value); 937 buf[items++] = cpu_to_le32(cladatum->permissions.nprim); 938 if (cladatum->permissions.table) 939 buf[items++] = cpu_to_le32(cladatum->permissions.table->nel); 951 if (cladatum->comkey) [all...] |
link.c | 240 class_datum_t *cladatum, *new_class = NULL; local 245 cladatum = (class_datum_t *) datum; 312 state->cur->map[SYM_CLASSES][cladatum->s.value - 1] = 316 state->src_class = cladatum; 321 ret = class_copy_default_new_object(state, cladatum, new_class); 326 hashtab_map(cladatum->permissions.table, permission_copy_callback, 2006 class_datum_t *cladatum; local 2072 class_datum_t *cladatum; local 2139 class_datum_t *cladatum; local [all...] |
services.c | 789 class_datum_t *cladatum, *cladatum2; local 792 cladatum = (class_datum_t *) datum; 800 if (cladatum->s.value != cladatum2->s.value) { 804 if ((cladatum->comdatum && !cladatum2->comdatum) || 805 (!cladatum->comdatum && cladatum2->comdatum)) { 810 if (cladatum->comdatum) { 812 (cladatum->comdatum->permissions.table, validate_perm, 820 if (hashtab_map(cladatum->permissions.table, validate_perm, [all...] |
/external/checkpolicy/ |
policy_define.c | 333 class_datum_t *cladatum; local 340 cladatum = hashtab_search(policydbp->p_classes.table, id); 341 if (!cladatum) { 345 if (ebitmap_set_bit(e_classes, cladatum->s.value - 1, TRUE)) { 357 class_datum_t *cladatum; local 370 cladatum = hashtab_search(policydbp->p_classes.table, id); 371 if (!cladatum) { 375 if (cladatum->default_user && cladatum->default_user != which) { 379 cladatum->default_user = which 389 class_datum_t *cladatum; local 421 class_datum_t *cladatum; local 546 class_datum_t *cladatum; local 1691 class_datum_t *cladatum; local 2297 class_datum_t *cladatum; local 2694 class_datum_t *cladatum; local 2844 class_datum_t *cladatum; local 4584 class_datum_t *cladatum; local [all...] |
checkpolicy.c | 383 class_datum_t *cladatum; local 674 cladatum = 678 cladatum = 683 if (!cladatum) { 687 tclass = cladatum->s.value; 690 if (!cladatum->comdatum && !cladatum->permissions.nprim) { 703 hashtab_map(cladatum-> 707 if (!ret && cladatum->comdatum) { 710 (cladatum- [all...] |
module_compiler.c | 731 static void class_datum_destroy(class_datum_t * cladatum) 733 if (cladatum != NULL) { 734 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); 735 hashtab_destroy(cladatum->permissions.table); 736 free(cladatum); 1296 class_datum_t *cladatum = local 1300 if (cladatum == NULL) { 1303 perdatum = (perm_datum_t *) hashtab_search(cladatum->permissions.table, 1308 return is_perm_in_stack(perdatum->s.value, cladatum->s.value, [all...] |