/system/linkerconfig/contents/tests/backward_compatibility/ |
D | default_test.cc | 26 using android::linkerconfig::modules::AsanPath; 48 AsanPath::SAME_PATH)); in TEST_F() 50 AsanPath::SAME_PATH)); in TEST_F() 52 AsanPath::SAME_PATH)); in TEST_F() 54 "/system/vendor/framework", AsanPath::SAME_PATH)); in TEST_F() 56 AsanPath::SAME_PATH)); in TEST_F() 58 "/system/vendor/priv-app", AsanPath::SAME_PATH)); in TEST_F() 60 AsanPath::SAME_PATH)); in TEST_F() 62 AsanPath::SAME_PATH)); in TEST_F() 64 AsanPath::SAME_PATH)); in TEST_F() [all …]
|
D | vndklite_test.cc | 26 using android::linkerconfig::modules::AsanPath; 49 AsanPath::WITH_DATA_ASAN)); in TEST_F() 51 AsanPath::WITH_DATA_ASAN)); in TEST_F() 57 AsanPath::WITH_DATA_ASAN)); in TEST_F() 59 AsanPath::WITH_DATA_ASAN)); in TEST_F() 61 sphal_namespace->ContainsSearchPath("/vendor/${LIB}/hw", AsanPath::NONE)); in TEST_F() 64 AsanPath::WITH_DATA_ASAN)); in TEST_F() 66 AsanPath::WITH_DATA_ASAN)); in TEST_F() 68 AsanPath::NONE)); in TEST_F() 74 AsanPath::WITH_DATA_ASAN)); in TEST_F() [all …]
|
D | legacy_test.cc | 23 using android::linkerconfig::modules::AsanPath; 37 AsanPath::WITH_DATA_ASAN)); in TEST() 39 AsanPath::WITH_DATA_ASAN)); in TEST()
|
/system/linkerconfig/contents/namespace/ |
D | vendordefault.cc | 25 using android::linkerconfig::modules::AsanPath; 70 ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 73 ns.AddSearchPath("/odm/${LIB}/vndk", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 74 ns.AddSearchPath("/odm/${LIB}/vndk-sp", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 77 ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 80 ns.AddSearchPath("/vendor/${LIB}/vndk", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 81 ns.AddSearchPath("/vendor/${LIB}/vndk-sp", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 86 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 87 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() 88 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVendorDefaultNamespace() [all …]
|
D | rs.cc | 24 using android::linkerconfig::modules::AsanPath; 34 ns.AddSearchPath("/odm/${LIB}/vndk-sp", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 35 ns.AddSearchPath("/vendor/${LIB}/vndk-sp", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 38 AsanPath::SAME_PATH); in BuildRsNamespace() 39 ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 40 ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 42 ns.AddPermittedPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 43 ns.AddPermittedPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildRsNamespace() 44 ns.AddPermittedPath("/system/vendor/${LIB}", AsanPath::NONE); in BuildRsNamespace() 45 ns.AddPermittedPath("/data", AsanPath::SAME_PATH); in BuildRsNamespace()
|
D | sphal.cc | 29 using android::linkerconfig::modules::AsanPath; 41 ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 42 ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 43 ns.AddSearchPath("/vendor/${LIB}/egl", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 44 ns.AddSearchPath("/vendor/${LIB}/hw", AsanPath::NONE); in BuildSphalNamespace() 46 ns.AddPermittedPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 47 ns.AddPermittedPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 48 ns.AddPermittedPath("/system/vendor/${LIB}", AsanPath::NONE); in BuildSphalNamespace() 53 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace() 54 ns.AddPermittedPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSphalNamespace()
|
D | vndk.cc | 22 using android::linkerconfig::modules::AsanPath; 67 ns.AddSearchPath(lib_path + "vndk-sp", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 69 ns.AddSearchPath(lib_path + "vndk", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 73 AsanPath::SAME_PATH); in BuildVndkNamespace() 78 ns.AddPermittedPath("/odm/${LIB}/hw", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 79 ns.AddPermittedPath("/odm/${LIB}/egl", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 80 ns.AddPermittedPath("/vendor/${LIB}/hw", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 81 ns.AddPermittedPath("/vendor/${LIB}/egl", AsanPath::WITH_DATA_ASAN); in BuildVndkNamespace() 83 ns.AddPermittedPath("/system/vendor/${LIB}/hw", AsanPath::NONE); in BuildVndkNamespace() 85 ns.AddPermittedPath("/system/vendor/${LIB}/egl", AsanPath::NONE); in BuildVndkNamespace() [all …]
|
D | systemdefault.cc | 25 using android::linkerconfig::modules::AsanPath; 43 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemDefaultNamespace() 44 ns.AddSearchPath(system_ext + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemDefaultNamespace() 48 ns.AddSearchPath(product + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemDefaultNamespace() 51 ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemDefaultNamespace() 52 ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemDefaultNamespace() 97 ns.AddPermittedPath(path, AsanPath::SAME_PATH); in BuildSystemDefaultNamespace() 101 ns.AddPermittedPath(product + "/${LIB}", AsanPath::SAME_PATH); in BuildSystemDefaultNamespace()
|
D | unrestricteddefault.cc | 23 using android::linkerconfig::modules::AsanPath; 32 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildUnrestrictedDefaultNamespace() 33 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildUnrestrictedDefaultNamespace() 34 ns.AddSearchPath("/odm/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildUnrestrictedDefaultNamespace() 35 ns.AddSearchPath("/vendor/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildUnrestrictedDefaultNamespace() 36 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildUnrestrictedDefaultNamespace()
|
D | postinstall.cc | 19 using android::linkerconfig::modules::AsanPath; 28 ns.AddSearchPath("/system/${LIB}", AsanPath::NONE); in BuildPostInstallNamespace() 29 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::NONE); in BuildPostInstallNamespace() 30 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::NONE); in BuildPostInstallNamespace()
|
D | system.cc | 24 using android::linkerconfig::modules::AsanPath; 33 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemNamespace() 34 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemNamespace() 36 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildSystemNamespace()
|
D | vndkinsystem.cc | 32 using android::linkerconfig::modules::AsanPath; 45 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVndkInSystemNamespace() 46 ns.AddSearchPath(Var("SYSTEM_EXT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVndkInSystemNamespace() 48 ns.AddSearchPath(Var("PRODUCT") + "/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildVndkInSystemNamespace()
|
D | apexplatform.cc | 27 using android::linkerconfig::modules::AsanPath; 62 ns.AddSearchPath("/system/${LIB}", AsanPath::WITH_DATA_ASAN); in BuildApexPlatformNamespace() 64 AsanPath::SAME_PATH); in BuildApexPlatformNamespace()
|
D | apexdefault.cc | 23 using android::linkerconfig::modules::AsanPath; 33 ns.AddSearchPath(apex_info.path + "/${LIB}", AsanPath::SAME_PATH); in BuildApexDefaultNamespace() 34 ns.AddPermittedPath(apex_info.path + "/${LIB}", AsanPath::SAME_PATH); in BuildApexDefaultNamespace()
|
D | productdefault.cc | 23 using android::linkerconfig::modules::AsanPath; 33 AsanPath::WITH_DATA_ASAN); in BuildProductDefaultNamespace() 34 ns.AddPermittedPath(Var("PRODUCT", "product"), AsanPath::WITH_DATA_ASAN); in BuildProductDefaultNamespace()
|
D | art.cc | 23 using android::linkerconfig::modules::AsanPath; 39 ns.AddSearchPath("/apex/com.android.art/${LIB}", AsanPath::SAME_PATH); in BuildArtNamespace() 56 ns.AddPermittedPath("/apex/com.android.art/javalib", AsanPath::SAME_PATH); in BuildArtNamespace()
|
D | recoverydefault.cc | 21 using android::linkerconfig::modules::AsanPath; 30 ns.AddSearchPath("/system/${LIB}", AsanPath::NONE); in BuildRecoveryDefaultNamespace()
|
/system/linkerconfig/modules/ |
D | namespace.cc | 91 void Namespace::AddSearchPath(const std::string& path, AsanPath path_from_asan) { in AddSearchPath() 95 case AsanPath::NONE: in AddSearchPath() 97 case AsanPath::SAME_PATH: in AddSearchPath() 100 case AsanPath::WITH_DATA_ASAN: in AddSearchPath() 108 AsanPath path_from_asan) { in AddPermittedPath() 112 case AsanPath::NONE: in AddPermittedPath() 114 case AsanPath::SAME_PATH: in AddPermittedPath() 117 case AsanPath::WITH_DATA_ASAN: in AddPermittedPath() 133 AsanPath path_from_asan) { in ContainsSearchPath() 135 (path_from_asan == AsanPath::NONE || in ContainsSearchPath() [all …]
|
/system/linkerconfig/modules/tests/ |
D | modules_testbase.h | 25 ns.AddSearchPath("/search_path1", AsanPath::WITH_DATA_ASAN); in CreateNamespaceWithPaths() 26 ns.AddSearchPath("/search_path2", AsanPath::SAME_PATH); in CreateNamespaceWithPaths() 27 ns.AddSearchPath("/search_path3", AsanPath::NONE); in CreateNamespaceWithPaths() 28 ns.AddPermittedPath("/permitted_path1", AsanPath::WITH_DATA_ASAN); in CreateNamespaceWithPaths() 29 ns.AddPermittedPath("/permitted_path2", AsanPath::SAME_PATH); in CreateNamespaceWithPaths() 30 ns.AddPermittedPath("/permitted_path3", AsanPath::NONE); in CreateNamespaceWithPaths()
|
/system/linkerconfig/modules/include/linkerconfig/ |
D | namespace.h | 37 enum class AsanPath { enum 73 AsanPath path_from_asan = AsanPath::SAME_PATH); 92 AsanPath path_from_asan = AsanPath::SAME_PATH); 114 bool ContainsSearchPath(const std::string& path, AsanPath path_from_asan); 115 bool ContainsPermittedPath(const std::string& path, AsanPath path_from_asan);
|