Home
last modified time | relevance | path

Searched refs:cladatum (Results 1 – 3 of 3) sorted by relevance

/security/selinux/ss/
Dpolicydb.c365 struct class_datum *cladatum; in class_index() local
368 cladatum = datum; in class_index()
370 if (!cladatum->value || cladatum->value > p->p_classes.nprim) in class_index()
373 if (flex_array_put_ptr(fa, cladatum->value - 1, key, in class_index()
376 p->class_val_to_struct[cladatum->value - 1] = cladatum; in class_index()
653 struct class_datum *cladatum; in cls_destroy() local
659 cladatum = datum; in cls_destroy()
660 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in cls_destroy()
661 hashtab_destroy(cladatum->permissions.table); in cls_destroy()
662 constraint = cladatum->constraints; in cls_destroy()
[all …]
Dmls.c515 struct class_datum *cladatum; in mls_compute_sid() local
532 cladatum = policydb.class_val_to_struct[tclass - 1]; in mls_compute_sid()
533 if (cladatum) in mls_compute_sid()
534 default_range = cladatum->default_range; in mls_compute_sid()
Dservices.c1585 struct class_datum *cladatum = NULL; in security_compute_sid() local
1635 cladatum = policydb.class_val_to_struct[tclass - 1]; in security_compute_sid()
1641 if (cladatum && cladatum->default_user == DEFAULT_TARGET) { in security_compute_sid()
1656 if (cladatum && cladatum->default_role == DEFAULT_SOURCE) { in security_compute_sid()
1658 } else if (cladatum && cladatum->default_role == DEFAULT_TARGET) { in security_compute_sid()
1668 if (cladatum && cladatum->default_type == DEFAULT_SOURCE) { in security_compute_sid()
1670 } else if (cladatum && cladatum->default_type == DEFAULT_TARGET) { in security_compute_sid()