Home
last modified time | relevance | path

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

/third_party/selinux/libsepol/src/
Dpolicydb_validate.c1253 static int validate_scope_index(sepol_handle_t *handle, const scope_index_t *scope_index, validate_… in validate_scope_index() argument
1255 if (validate_ebitmap(&scope_index->p_classes_scope, &flavors[SYM_CLASSES])) in validate_scope_index()
1257 if (validate_ebitmap(&scope_index->p_roles_scope, &flavors[SYM_ROLES])) in validate_scope_index()
1259 if (validate_ebitmap(&scope_index->p_types_scope, &flavors[SYM_TYPES])) in validate_scope_index()
1261 if (validate_ebitmap(&scope_index->p_users_scope, &flavors[SYM_USERS])) in validate_scope_index()
1263 if (validate_ebitmap(&scope_index->p_bools_scope, &flavors[SYM_BOOLS])) in validate_scope_index()
1265 if (validate_ebitmap(&scope_index->p_sens_scope, &flavors[SYM_LEVELS])) in validate_scope_index()
1267 if (validate_ebitmap(&scope_index->p_cat_scope, &flavors[SYM_CATS])) in validate_scope_index()
1269 if (scope_index->class_perms_len > flavors[SYM_CLASSES].nprim) in validate_scope_index()
Dpolicydb.c3945 static int scope_index_read(scope_index_t * scope_index, in scope_index_read() argument
3953 if (ebitmap_read(scope_index->scope + i, fp) < 0) { in scope_index_read()
3960 scope_index->class_perms_len = le32_to_cpu(buf[0]); in scope_index_read()
3961 if (is_saturated(scope_index->class_perms_len)) in scope_index_read()
3963 if (scope_index->class_perms_len == 0) { in scope_index_read()
3964 scope_index->class_perms_map = NULL; in scope_index_read()
3967 if ((scope_index->class_perms_map = in scope_index_read()
3968 calloc(scope_index->class_perms_len, in scope_index_read()
3969 sizeof(*scope_index->class_perms_map))) == NULL) { in scope_index_read()
3972 for (i = 0; i < scope_index->class_perms_len; i++) { in scope_index_read()
[all …]
Dwrite.c2022 static int scope_index_write(scope_index_t * scope_index, in scope_index_write() argument
2029 if (ebitmap_write(scope_index->scope + i, fp) == -1) { in scope_index_write()
2033 buf[0] = cpu_to_le32(scope_index->class_perms_len); in scope_index_write()
2037 for (i = 0; i < scope_index->class_perms_len; i++) { in scope_index_write()
2038 if (ebitmap_write(scope_index->class_perms_map + i, fp) == -1) { in scope_index_write()
Dmodule_to_cil.c3594 static int is_scope_superset(struct scope_index *sup, struct scope_index *sub) in is_scope_superset()
/third_party/node/deps/v8/src/interpreter/
Dbytecode-array-builder.cc968 size_t scope_index = GetConstantPoolEntry(scope); in CreateCatchContext() local
969 OutputCreateCatchContext(exception, scope_index); in CreateCatchContext()
975 size_t scope_index = GetConstantPoolEntry(scope); in CreateFunctionContext() local
976 OutputCreateFunctionContext(scope_index, slots); in CreateFunctionContext()
982 size_t scope_index = GetConstantPoolEntry(scope); in CreateEvalContext() local
983 OutputCreateEvalContext(scope_index, slots); in CreateEvalContext()
989 size_t scope_index = GetConstantPoolEntry(scope); in CreateWithContext() local
990 OutputCreateWithContext(object, scope_index); in CreateWithContext()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_type.cpp573 const auto scope_index = 2; in ValidateTypeCooperativeMatrixNV() local
574 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrixNV()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_type.cpp573 const auto scope_index = 2; in ValidateTypeCooperativeMatrixNV() local
574 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrixNV()
/third_party/spirv-tools/source/val/
Dvalidate_type.cpp558 const auto scope_index = 2; in ValidateTypeCooperativeMatrixNV() local
559 const auto scope_id = inst->GetOperandAs<uint32_t>(scope_index); in ValidateTypeCooperativeMatrixNV()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h430 typedef struct scope_index { struct