Lines Matching refs:perms

1318 static int __cil_perms_to_datum(struct cil_list *perms, class_datum_t *sepol_class, uint32_t *datum)
1326 cil_list_for_each(curr_perm, perms) {
1402 rc = __cil_perms_to_datum(cp->perms, sepol_class, &data);
1447 cil_list_for_each(i, cp->perms) {
1493 struct cil_list *classperms = cil_avrule->perms.classperms;
1621 xperms->perms[i] |= ~0U;
1624 xperms->perms[i] |= XPERM_SETBITS(h);
1627 xperms->perms[i] |= ~0U - XPERM_SETBITS(low);
1630 xperms->perms[i] |= XPERM_SETBITS(h) - XPERM_SETBITS(low);
1833 rc = __cil_avrulex_ioctl_to_hashtable(args->avrulex_ioctl_table, kind, sepol_src->s.value, sepol_tgt->s.value, sepol_obj->s.value, permx->perms);
1876 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, src, cil_avrulex->perms.x.permx, args);
1887 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args);
1908 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args);
1927 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args);
1943 rc = __cil_avrulex_to_hashtable_helper(pdb, kind, src, tgt, cil_avrulex->perms.x.permx, args);
2890 static int cil_constrain_to_policydb_helper(policydb_t *pdb, const struct cil_db *db, struct cil_symtab_datum *class, struct cil_list *perms, struct cil_list *expr)
2903 rc = __cil_perms_to_datum(perms, sepol_class, &sepol_constrain->permissions);
2945 rc = cil_constrain_to_policydb_helper(pdb, db, DATUM(cp->class), cp->perms, expr);
2951 cil_list_for_each(i, cp->perms) {
4498 rc = __cil_perms_to_datum(cp->perms, sepol_class, &data);
4509 cil_list_for_each(j, cp->perms) {
4625 avrule->perms = NULL;
4652 __cil_destroy_sepol_class_perms(curr->perms);
4677 cil_list_for_each(i2, cp->perms) {
4679 if (i2 != cp->perms->tail) {
4718 __cil_print_classperm(avrule->perms.classperms);
4721 __cil_print_permissionx(avrule->perms.x.permx);
4748 target.perms = cil_rule->perms;
4824 rc = __cil_rule_to_sepol_class_perms(pdb, cil_rule->perms.classperms, &rule->perms);
4839 rc = __cil_permx_to_sepol_class_perms(pdb, cil_rule->perms.x.permx, &rule->perms);
4844 rc = __cil_permx_bitmap_to_sepol_xperms_list(cil_rule->perms.x.permx->perms, &xperms);
4905 cil_list_init(&cp->perms, CIL_PERM);
4911 cil_list_append(cp->perms, CIL_PERM, perm);
4936 cil_rule->perms.classperms = cil_classperms_from_sepol(pdb, k->target_class, d->data, class_value_to_cil, perm_value_to_cil);
4937 if (!cil_rule->perms.classperms) goto exit;
5003 cil_list_destroy(&target.perms.classperms, CIL_TRUE);
5027 cil_list_destroy(&target.perms.classperms, CIL_TRUE);