• Home
  • Raw
  • Download

Lines Matching refs:nprim

196 	role->value = ++p->p_roles.nprim;  in roles_init()
352 if (!comdatum->value || comdatum->value > p->p_commons.nprim) in common_index()
370 if (!cladatum->value || cladatum->value > p->p_classes.nprim) in class_index()
389 || role->value > p->p_roles.nprim in role_index()
390 || role->bounds > p->p_roles.nprim) in role_index()
412 || typdatum->value > p->p_types.nprim in type_index()
413 || typdatum->bounds > p->p_types.nprim) in type_index()
438 || usrdatum->value > p->p_users.nprim in user_index()
439 || usrdatum->bounds > p->p_users.nprim) in user_index()
461 levdatum->level->sens > p->p_levels.nprim) in sens_index()
482 if (!catdatum->value || catdatum->value > p->p_cats.nprim) in cat_index()
541 p->p_users.nprim, p->p_roles.nprim, p->p_types.nprim, p->p_bools.nprim); in policydb_index()
543 printk(KERN_CONT ", %d sens, %d cats", p->p_levels.nprim, in policydb_index()
544 p->p_cats.nprim); in policydb_index()
548 p->p_classes.nprim, p->te_avtab.nel); in policydb_index()
555 p->class_val_to_struct = kcalloc(p->p_classes.nprim, in policydb_index()
561 p->role_val_to_struct = kcalloc(p->p_roles.nprim, in policydb_index()
567 p->user_val_to_struct = kcalloc(p->p_users.nprim, in policydb_index()
575 p->p_types.nprim, in policydb_index()
581 p->p_types.nprim, GFP_KERNEL | __GFP_ZERO); in policydb_index()
591 p->symtab[i].nprim, in policydb_index()
597 0, p->symtab[i].nprim, in policydb_index()
878 for (i = 0; i < p->p_types.nprim; i++) { in policydb_destroy()
932 if (!class || class > p->p_classes.nprim) in policydb_class_isvalid()
939 if (!role || role > p->p_roles.nprim) in policydb_role_isvalid()
946 if (!type || type > p->p_types.nprim) in policydb_type_isvalid()
960 if (!c->role || c->role > p->p_roles.nprim) in policydb_context_isvalid()
963 if (!c->user || c->user > p->p_users.nprim) in policydb_context_isvalid()
966 if (!c->type || c->type > p->p_types.nprim) in policydb_context_isvalid()
1177 comdatum->permissions.nprim = le32_to_cpu(buf[2]); in common_read()
1343 cladatum->permissions.nprim = le32_to_cpu(buf[3]); in class_read()
1826 if (!tclass || tclass > p->p_classes.nprim) in string_to_av_perm()
2302 u32 len, nprim, nel; in policydb_read() local
2427 nprim = le32_to_cpu(buf[0]); in policydb_read()
2435 p->symtab[i].nprim = nprim; in policydb_read()
2547 p->p_types.nprim, in policydb_read()
2553 rc = flex_array_prealloc(p->type_attr_map_array, 0, p->p_types.nprim, in policydb_read()
2558 for (i = 0; i < p->p_types.nprim; i++) { in policydb_read()
2822 buf[2] = cpu_to_le32(comdatum->permissions.nprim); in common_write()
2930 buf[3] = cpu_to_le32(cladatum->permissions.nprim); in class_write()
3512 buf[0] = cpu_to_le32(p->symtab[i].nprim); in policydb_write()
3555 for (i = 0; i < p->p_types.nprim; i++) { in policydb_write()