Home
last modified time | relevance | path

Searched refs:target_type (Results 1 – 23 of 23) sorted by relevance

/system/sepolicy/tools/sepolicy-analyze/
Dtypecmp.c24 k->target_type < c->key.target_type) in insert_type_rule()
27 k->target_type == c->key.target_type && in insert_type_rule()
34 k->target_type == c->key.target_type && in insert_type_rule()
68 if (k->source_type == k->target_type) { in create_type_rules_helper()
70 key.target_type = 0; in create_type_rules_helper()
75 if (k->source_type == k->target_type) in create_type_rules_helper()
86 key.target_type = 0; in create_type_rules_helper()
87 if (insert_type_rule(&key, d, &type_rules[k->target_type - 1])) in create_type_rules_helper()
130 l1->key.target_type < c->key.target_type) in find_match()
133 l1->key.target_type == c->key.target_type && in find_match()
[all …]
Ddups.c27 if (k->source_type == k->target_type) in find_dups_helper()
34 tattr = &policydb->type_attr_map[k->target_type - 1]; in find_dups_helper()
36 ttype = policydb->type_val_to_struct[k->target_type - 1]; in find_dups_helper()
45 avkey.target_type = j + 1; in find_dups_helper()
47 avkey.target_type == k->target_type) in find_dups_helper()
49 if (avkey.source_type == avkey.target_type) in find_dups_helper()
52 ttype2 = policydb->type_val_to_struct[avkey.target_type - 1]; in find_dups_helper()
Dutils.c17 key->target_type == key->source_type ? "self" : in display_allow()
18 policydb->p_type_val_to_name[key->target_type in display_allow()
19 ? key->target_type - 1 : idx], in display_allow()
/system/sepolicy/tools/
Dsepolicy-check.c64 int t_op, uint32_t target_type, in expand_and_check() argument
87 match &= check(t_op, target_type, cur->key.target_type); in expand_and_check()
128 key.source_type = key.target_type = key.target_class = 0; in check_rule()
169 key.target_type = tgt->s.value; in check_rule()
175 t_op, key.target_type, in check_rule()
183 t_op, key.target_type, in check_rule()
/system/core/fs_mgr/tools/
Ddmctl.cpp81 std::string target_type = NextArg(); in Next() local
92 if (target_type == "zero") { in Next()
94 } else if (target_type == "linear") { in Next()
108 } else if (target_type == "android-verity") { in Next()
118 } else if (target_type == "bow") { in Next()
126 std::cerr << "Unrecognized target type: " << target_type << std::endl; in Next()
257 << target.spec.target_type; in DmListDevices()
327 << target.spec.target_type; in TableCmdHandler()
/system/vold/
DMetadataCrypt.cpp186 const std::string& target_type, const KeyBuffer& crypt_params, in create_crypto_blk_dev() argument
225 target_type.copy(tgt->target_type, sizeof(tgt->target_type)); in create_crypto_blk_dev()
DDevmapper.cpp127 strlcpy(tgt->target_type, "crypt", sizeof(tgt->target_type)); in create()
Dcryptfs.cpp999 strlcpy(tgt->target_type, "crypt", DM_MAX_TYPE_NAME); in load_crypto_mapping_table()
/system/core/fs_mgr/libdm/
Ddm_target.cpp45 snprintf(spec->target_type, sizeof(spec->target_type), "%s", name().c_str()); in Serialize()
Ddm_test.cpp169 EXPECT_EQ(strcmp(targets[0].spec.target_type, "linear"), 0); in TEST()
173 EXPECT_EQ(strcmp(targets[1].spec.target_type, "linear"), 0); in TEST()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp81 switch (extent.target_type) { in CreateDmTable()
97 LOG(ERROR) << "Unknown target type in metadata: " << extent.target_type; in CreateDmTable()
Dfs_mgr.cpp1738 if (strcmp(target.spec.target_type, "verity") == 0 && in fs_mgr_verity_is_check_at_most_once()
/system/core/fs_mgr/liblp/include/liblp/
Dmetadata_format.h244 uint32_t target_type; member
/system/extras/partition_tools/
Dlpunpack.cc221 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in ExtractPartition()
222 std::cerr << "Unsupported target type in extent: " << extent.target_type << "\n"; in ExtractPartition()
Dlpdump.cc347 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in LpdumpMain()
351 } else if (extent.target_type == LP_TARGET_TYPE_ZERO) { in LpdumpMain()
/system/core/fs_mgr/liblp/
Dbuilder_test.cpp220 ASSERT_EQ(extent.target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
358 EXPECT_EQ(extent.target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
694 EXPECT_EQ(metadata->extents[0].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
698 EXPECT_EQ(metadata->extents[1].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
702 EXPECT_EQ(metadata->extents[2].target_type, LP_TARGET_TYPE_LINEAR); in TEST_F()
742 EXPECT_EQ(extent_a.target_type, extent_b.target_type); in TEST_F()
Dimages.cpp285 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in AddPartitionImage()
394 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in CheckExtentOrdering()
Dio_test.cpp196 EXPECT_EQ(exported->extents[0].target_type, imported->extents[0].target_type); in TEST()
Dwriter.cpp153 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in ValidateAndSerializeMetadata()
Dreader.cpp281 if (extent.target_type == LP_TARGET_TYPE_LINEAR && in ParseMetadata()
Dbuilder.cpp260 if (extent.target_type == LP_TARGET_TYPE_LINEAR) { in ImportExtents()
264 } else if (extent.target_type == LP_TARGET_TYPE_ZERO) { in ImportExtents()
/system/sepolicy/tests/
Dsepol_wrap.cpp282 db->p_type_val_to_name[(avtab_i->cur)->key.target_type - 1], in get_avtab_allow_rule()
/system/gsid/
Dgsi_service.cpp1004 if (extent.target_type != LP_TARGET_TYPE_LINEAR) { in GetPartitionSize()