Home
last modified time | relevance | path

Searched refs:scope_index (Results 1 – 8 of 8) sorted by relevance

/external/selinux/libsepol/src/
Dpolicydb_validate.c1471 static int validate_scope_index(sepol_handle_t *handle, const scope_index_t *scope_index, validate_… in validate_scope_index() argument
1475 if (!ebitmap_is_empty(&scope_index->scope[SYM_COMMONS])) in validate_scope_index()
1477 if (validate_ebitmap(&scope_index->p_classes_scope, &flavors[SYM_CLASSES])) in validate_scope_index()
1479 if (validate_ebitmap(&scope_index->p_roles_scope, &flavors[SYM_ROLES])) in validate_scope_index()
1481 if (validate_ebitmap(&scope_index->p_types_scope, &flavors[SYM_TYPES])) in validate_scope_index()
1483 if (validate_ebitmap(&scope_index->p_users_scope, &flavors[SYM_USERS])) in validate_scope_index()
1485 if (validate_ebitmap(&scope_index->p_bools_scope, &flavors[SYM_BOOLS])) in validate_scope_index()
1487 if (validate_ebitmap(&scope_index->p_sens_scope, &flavors[SYM_LEVELS])) in validate_scope_index()
1489 if (validate_ebitmap(&scope_index->p_cat_scope, &flavors[SYM_CATS])) in validate_scope_index()
1492 for (i = 0; i < scope_index->class_perms_len; i++) in validate_scope_index()
Dpolicydb.c3848 static int scope_index_read(scope_index_t * scope_index, in scope_index_read() argument
3856 if (ebitmap_read(scope_index->scope + i, fp) < 0) { in scope_index_read()
3863 scope_index->class_perms_len = le32_to_cpu(buf[0]); in scope_index_read()
3864 if (is_saturated(scope_index->class_perms_len) || in scope_index_read()
3865 exceeds_available_bytes(fp, scope_index->class_perms_len, sizeof(uint32_t) * 3)) in scope_index_read()
3867 if (scope_index->class_perms_len == 0) { in scope_index_read()
3868 scope_index->class_perms_map = NULL; in scope_index_read()
3871 if ((scope_index->class_perms_map = in scope_index_read()
3872 calloc(scope_index->class_perms_len, in scope_index_read()
3873 sizeof(*scope_index->class_perms_map))) == NULL) { in scope_index_read()
[all …]
Dwrite.c2024 static int scope_index_write(scope_index_t * scope_index, in scope_index_write() argument
2031 if (ebitmap_write(scope_index->scope + i, fp) == -1) { in scope_index_write()
2035 buf[0] = cpu_to_le32(scope_index->class_perms_len); in scope_index_write()
2039 for (i = 0; i < scope_index->class_perms_len; i++) { in scope_index_write()
2040 if (ebitmap_write(scope_index->class_perms_map + i, fp) == -1) { in scope_index_write()
Dmodule_to_cil.c3637 static int is_scope_superset(struct scope_index *sup, struct scope_index *sub) in is_scope_superset()
/external/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_type.cpp542 const auto scope_index = 2; in ValidateTypeCooperativeMatrix() local
543 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrix()
/external/deqp-deps/SPIRV-Tools/source/val/
Dvalidate_type.cpp544 const auto scope_index = 2; in ValidateTypeCooperativeMatrix() local
545 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrix()
/external/angle/third_party/spirv-tools/src/source/val/
Dvalidate_type.cpp629 const auto scope_index = 2; in ValidateTypeCooperativeMatrix() local
630 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrix()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h432 typedef struct scope_index { struct