platform_build_soong/apex
Liz Kammer a3d7915c9e Add comments and clarify errors in neverallow
Sample of new error for violation:

error: system/bt/gd/rust/topshim/macros/Android.bp:10:1: module
"libtopshim_macros" variant "linux_glibc_x86_64": violates neverallow
requirements. Not allowed:
        module types: ["rust_benchmark" "rust_benchmark_host"
"rust_binary" "rust_binary_host" "rust_library" "rust_library_dylib"
"rust_library_rlib" "rust_ffi" "rust_ffi_shared" "rust_ffi_static"
"rust_fuzz" "rust_library_host" "rust_library_host_dylib"
"rust_library_host_rlib" "rust_ffi_host" "rust_ffi_host_shared"
"rust_ffi_host_static" "rust_proc_macro" "rust_test" "rust_test_host"]
      EXCEPT in dirs: ["device/google/cuttlefish/"
"external/adhd/" "external/crosvm/" "external/libchromeos-rs/"
"external/minijail/" "external/rust/" "external/selinux/libselinux/"
"external/uwb/" "external/vm_tools/p9/"
"frameworks/native/libs/binder/rust/" "frameworks/proto_logging/stats/"
"packages/modules/DnsResolver/" "packages/modules/Virtualization/"
"prebuilts/rust/" "system/core/libstats/pull_rust/"
"system/extras/profcollectd/" "system/extras/simpleperf/"
"system/hardware/interfaces/keystore2/" "system/librustutils/"
"system/logging/liblog/" "system/logging/rust/" "system/nfc/"
"system/security/" "system/tools/aidl/"
"tools/security/fuzzing/example_rust_fuzzer/"
"tools/security/fuzzing/orphans/" "vendor/"]

Old error:

error: system/bt/gd/rust/topshim/macros/Android.bp:10:1: module
"libtopshim_macros" variant "linux_glibc_x86_64": neverallow
-dir:device/google/cuttlefish/* -dir:external/adhd/*
-dir:external/crosvm/* -dir:external/libchromeos-rs/*
-dir:external/minijail/* -dir:external/rust/*
-dir:external/selinux/libselinux/* -dir:external/uwb/*
-dir:external/vm_tools/p9/* -dir:frameworks/native/libs/binder/rust/*
-dir:frameworks/proto_logging/stats/*
-dir:packages/modules/DnsResolver/*
-dir:packages/modules/Virtualization/* -dir:prebuilts/rust/*
-dir:system/core/libstats/pull_rust/* -dir:system/extras/profcollectd/*
-dir:system/extras/simpleperf/*
-dir:system/hardware/interfaces/keystore2/* -dir:system/librustutils/*
-dir:system/logging/liblog/* -dir:system/logging/rust/*
-dir:system/nfc/* -dir:system/security/* -dir:system/tools/aidl/*
-dir:tools/security/fuzzing/example_rust_fuzzer/*
-dir:tools/security/fuzzing/orphans/* -dir:vendor/*
type:"rust_benchmark" type:"rust_benchmark_host type:rust_binary
type:rust_binary_host type:rust_library type:rust_library_dylib
type:rust_library_rlib type:rust_ffi type:rust_ffi_shared
type:rust_ffi_static type:rust_fuzz type:rust_library_host
type:rust_library_host_dylib type:rust_library_host_rlib
type:rust_ffi_host type:rust_ffi_host_shared type:rust_ffi_host_static
type:rust_proc_macro type:rust_test type:rust_test_host

Test: go test soong tests
Change-Id: I1a7ee6bbc8258dfffa5a76f02c12fb1e54fdba1a
2021-12-21 12:00:43 -05:00
..
Android.bp Add partial bp2build support for APEX targets (second try). 2021-07-02 07:36:07 -04:00
androidmk.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
apex.go Merge "Remove InstallBypassMake and ToMakePath" 2021-12-17 06:15:16 +00:00
apex_singleton.go Merge "Update error message for new policy." am: bf49705608 am: 775f9e37c7 2021-08-04 10:20:47 +00:00
apex_test.go Add comments and clarify errors in neverallow 2021-12-21 12:00:43 -05:00
bootclasspath_fragment_test.go Test that DisableGenerateProfile takes effects for APEXes. 2021-12-14 10:55:12 +00:00
builder.go Add canned_fs_config to apex module type 2021-12-15 09:11:15 +09:00
classpath_element_test.go Make sure that classpath fragment contents appear in make vars. 2021-08-16 12:00:25 +01:00
deapexer.go Consolidate the code to resolve a deapexer module dependency. 2021-09-23 17:19:55 +01:00
key.go Use one mutator for all bp2build conversion. 2021-12-14 09:37:45 -05:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
platform_bootclasspath_test.go Retry: Separate hidden API flags needed in sdk snapshots for S and T 2021-10-05 15:27:42 +01:00
prebuilt.go Remove InstallBypassMake and ToMakePath 2021-12-15 15:22:53 -08:00
systemserver_classpath_fragment_test.go Add entries for STANDALONE_SYSTEMSERVER_JARS to systemserverclasspath.pb 2021-11-30 10:51:10 +00:00
TEST_MAPPING
testing.go Java APIs used by Mainline modules. 2021-11-12 23:39:35 +00:00
vndk.go Remove the compat symlinks to ART binaries. 2021-12-14 17:56:26 +00:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00