HomeSort by relevance Sort by last modified time
    Searched refs:cladatum (Results 1 - 9 of 9) sorted by null

  /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 179 class_datum_t *cladatum; local
184 cladatum =
186 if (cladatum == NULL) {
189 perm = hashtab_search(cladatum->permissions.table, perm_id);
190 if (perm == NULL && cladatum->comdatum != 0) {
194 hashtab_search(cladatum->comdatum->permissions.table,
policydb.c 844 class_datum_t *cladatum; local
846 cladatum = (class_datum_t *) datum;
848 if (!cladatum->s.value || cladatum->s.value > p->p_classes.nprim)
850 p->p_class_val_to_name[cladatum->s.value - 1] = (char *)key;
851 p->class_val_to_struct[cladatum->s.value - 1] = cladatum;
1128 class_datum_t *cladatum; local
1134 cladatum = (class_datum_t *) datum;
1135 if (cladatum == NULL)
2064 class_datum_t *cladatum; local
    [all...]
write.c 915 class_datum_t *cladatum; local
923 cladatum = (class_datum_t *) datum;
926 if (cladatum->comkey)
927 len2 = strlen(cladatum->comkey);
932 for (c = cladatum->constraints; c; c = c->next) {
939 buf[items++] = cpu_to_le32(cladatum->s.value);
940 buf[items++] = cpu_to_le32(cladatum->permissions.nprim);
941 if (cladatum->permissions.table)
942 buf[items++] = cpu_to_le32(cladatum->permissions.table->nel);
954 if (cladatum->comkey)
    [all...]
link.c 247 class_datum_t *cladatum, *new_class = NULL; local
252 cladatum = (class_datum_t *) datum;
319 state->cur->map[SYM_CLASSES][cladatum->s.value - 1] =
323 state->src_class = cladatum;
328 ret = class_copy_default_new_object(state, cladatum, new_class);
333 hashtab_map(cladatum->permissions.table, permission_copy_callback,
2022 class_datum_t *cladatum; local
2091 class_datum_t *cladatum; local
2152 class_datum_t *cladatum; local
    [all...]
services.c 1413 class_datum_t *cladatum, *cladatum2; local
    [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...]

Completed in 317 milliseconds