Lines Matching refs:cladatum
341 class_datum_t *cladatum; in read_classes() local
348 cladatum = hashtab_search(policydbp->p_classes.table, id); in read_classes()
349 if (!cladatum) { in read_classes()
355 if (ebitmap_set_bit(e_classes, cladatum->s.value - 1, TRUE)) { in read_classes()
366 class_datum_t *cladatum; in define_default_user() local
379 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_user()
380 if (!cladatum) { in define_default_user()
384 if (cladatum->default_user && cladatum->default_user != which) { in define_default_user()
388 cladatum->default_user = which; in define_default_user()
398 class_datum_t *cladatum; in define_default_role() local
411 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_role()
412 if (!cladatum) { in define_default_role()
416 if (cladatum->default_role && cladatum->default_role != which) { in define_default_role()
420 cladatum->default_role = which; in define_default_role()
430 class_datum_t *cladatum; in define_default_type() local
443 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_type()
444 if (!cladatum) { in define_default_type()
448 if (cladatum->default_type && cladatum->default_type != which) { in define_default_type()
452 cladatum->default_type = which; in define_default_type()
462 class_datum_t *cladatum; in define_default_range() local
475 cladatum = hashtab_search(policydbp->p_classes.table, id); in define_default_range()
476 if (!cladatum) { in define_default_range()
480 if (cladatum->default_range && cladatum->default_range != which) { in define_default_range()
484 cladatum->default_range = which; in define_default_range()
587 class_datum_t *cladatum; in define_av_perms() local
603 cladatum = (class_datum_t *) hashtab_search(policydbp->p_classes.table, in define_av_perms()
605 if (!cladatum) { in define_av_perms()
611 if (cladatum->comdatum || cladatum->permissions.nprim) { in define_av_perms()
615 if (symtab_init(&cladatum->permissions, PERM_SYMTAB_SIZE)) { in define_av_perms()
635 cladatum->comkey = id; in define_av_perms()
636 cladatum->comdatum = comdatum; in define_av_perms()
642 cladatum->permissions.nprim += comdatum->permissions.nprim; in define_av_perms()
651 perdatum->s.value = ++cladatum->permissions.nprim; in define_av_perms()
665 (perm_datum_t *) hashtab_search(cladatum->comdatum-> in define_av_perms()
674 ret = hashtab_insert(cladatum->permissions.table, in define_av_perms()
686 if (add_perm_to_class(perdatum->s.value, cladatum->s.value)) { in define_av_perms()
2033 class_datum_t *cladatum; in define_te_avtab_xperms_helper() local
2109 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_xperms_helper()
2110 perdatum = hashtab_search(cladatum->permissions.table, id); in define_te_avtab_xperms_helper()
2112 if (cladatum->comdatum) { in define_te_avtab_xperms_helper()
2113 perdatum = hashtab_search(cladatum->comdatum-> in define_te_avtab_xperms_helper()
2491 class_datum_t *cladatum; in define_te_avtab_helper() local
2573 cladatum = policydbp->class_val_to_struct[i]; in define_te_avtab_helper()
2590 hashtab_search(cladatum->permissions.table, id); in define_te_avtab_helper()
2592 if (cladatum->comdatum) { in define_te_avtab_helper()
2594 hashtab_search(cladatum->comdatum-> in define_te_avtab_helper()
3105 class_datum_t *cladatum; in define_role_trans() local
3146 cladatum = hashtab_search(policydbp->p_classes.table, in define_role_trans()
3148 if (!cladatum) { in define_role_trans()
3154 if (ebitmap_set_bit(&e_classes, cladatum->s.value - 1, TRUE)) { in define_role_trans()
3484 class_datum_t *cladatum; in define_constraint() local
3547 cladatum = in define_constraint()
3550 if (!cladatum) { in define_constraint()
3556 if (ebitmap_set_bit(&classmap, cladatum->s.value - 1, TRUE)) { in define_constraint()
3582 node->next = cladatum->constraints; in define_constraint()
3583 cladatum->constraints = node; in define_constraint()
3590 cladatum = policydbp->class_val_to_struct[i]; in define_constraint()
3591 node = cladatum->constraints; in define_constraint()
3594 (perm_datum_t *) hashtab_search(cladatum-> in define_constraint()
3600 if (cladatum->comdatum) { in define_constraint()
3603 hashtab_search(cladatum-> in define_constraint()
3632 class_datum_t *cladatum; in define_validatetrans() local
3686 cladatum = in define_validatetrans()
3689 if (!cladatum) { in define_validatetrans()
3695 if (ebitmap_set_bit(&classmap, (cladatum->s.value - 1), TRUE)) { in define_validatetrans()
3716 node->next = cladatum->validatetrans; in define_validatetrans()
3717 cladatum->validatetrans = node; in define_validatetrans()
5472 class_datum_t *cladatum; in define_genfs_context_helper() local
5561 cladatum = hashtab_search(policydbp->p_classes.table, in define_genfs_context_helper()
5563 if (!cladatum) { in define_genfs_context_helper()
5568 newc->v.sclass = cladatum->s.value; in define_genfs_context_helper()
5617 class_datum_t *cladatum; in define_range_trans() local
5669 cladatum = hashtab_search(policydbp->p_classes.table, in define_range_trans()
5671 if (!cladatum) { in define_range_trans()
5677 if (ebitmap_set_bit(&rule->tclasses, cladatum->s.value - 1, TRUE)) { in define_range_trans()