| { | |
| enable_introspection: true, | |
| security_policy: { | |
| job_policy: { | |
| ambient_mark_vmo_exec: [ | |
| // We allow tests to access ambient executability in the same | |
| // way that we're permissive with use of the components v1 | |
| // deprecated-ambient-replace-as-executable feature and | |
| // VmexResource protocol on eng builds. | |
| // | |
| // We explicitly enumerate all test realms here for | |
| // informationial purposes. | |
| "/core/test_manager/chromium-system-tests:**", | |
| "/core/test_manager/chromium-tests:**", | |
| "/core/test_manager/component-framework-tests:**", | |
| "/core/test_manager/cts-tests:**", | |
| "/core/test_manager/devices-tests:**", | |
| "/core/test_manager/drm-tests:**", | |
| "/core/test_manager/google-tests:**", | |
| "/core/test_manager/media-tests:**", | |
| "/core/test_manager/system-tests:**", | |
| "/core/test_manager/system-validation-tests:**", | |
| "/core/test_manager/tests:**", | |
| "/core/test_manager/vulkan-tests:**", | |
| // We allow tests to access ambient executability in the same | |
| // way that we're permissive with use of the components v1 | |
| // deprecated-ambient-replace-as-executable feature and | |
| // VmexResource protocol on eng builds. | |
| // | |
| // Some test runners explicitly require ambient executability. | |
| "/core/test_manager/elf_test_ambient_exec_runner", | |
| "/core/test_manager/g3_dart_jit_product_runner", | |
| ], | |
| create_raw_processes: [ | |
| "/core/test_manager/elf_test_create_raw_processes_runner", | |
| "/core/test_manager/rust_test_create_raw_processes_runner", | |
| "/core/testing/rust_test_create_raw_processes_runner", | |
| "/core/test_manager/fuzz_starnix_test_runner", | |
| "/core/testing/component-framework-tests:**", | |
| "/core/testing/storage-tests:**", | |
| ], | |
| }, | |
| capability_policy: [ | |
| { | |
| source_moniker: "/", | |
| source: "framework", | |
| source_name: "fuchsia.component.Introspector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/testing/elf_test_runner", | |
| "/core/testing/fuzz_test_runner", | |
| "/core/testing/gtest_runner", | |
| "/core/testing/gunit_runner", | |
| "/core/testing/rust_test_runner", | |
| "/core/testing/starnix_test_runner", | |
| "/core/testing/zxtest_runner", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.CpuResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.DebugResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.DebuglogResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/testing/vfs-compliance-tests:**", | |
| "/bootstrap/base-drivers:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.HypervisorResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| "/core/testing/starnix_test_runners/starnix_test_runner/interactive-guest/**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.InfoResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/bootstrap/base-drivers:**", | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.IoportResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.IrqResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.MmioResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.ProfileResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/system-tests:**", | |
| "/bootstrap/role_manager", | |
| "/bootstrap/console-launcher", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.PowerResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.RootJob", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/bootstrap/vsock-sshd-host/shell:**", | |
| "/core/process_explorer", | |
| "/core/debugger/agents:**", | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| "/core/testing/starnix-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.RootJobForInspect", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.SmcResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.TracingResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/trace_manager/ktrace_provider", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.SamplingResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/cpu_profiler", | |
| "/core/testing/starnix-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.kernel.VmexResource", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| "/core/testing/vfs-compliance-tests:**", | |
| "/core/testing/component-framework-tests:**", | |
| "/core/testing/storage-tests:**", | |
| "/core/testing/vulkan-tests:**", | |
| "/core/testing/starnix_test_runners/starnix_test_runner/interactive-guest/**", | |
| // We allow tests to access ambient executability in the same | |
| // way that we're permissive with use of the components v1 | |
| // deprecated-ambient-replace-as-executable feature and | |
| // VmexResource protocol on eng builds. | |
| "/core/test_manager/**", | |
| // This protocol is used by `ffx component explore` in eng-only builds. | |
| "/bootstrap/debug-dash-launcher", | |
| "/core/debug-dash-launcher", | |
| // This protocol is used by console-launcher to run tests in bringup builds. | |
| "/bootstrap/console-launcher", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.pkg.PackageResolver-boot", | |
| capability: "protocol", | |
| target_monikers: [ | |
| // debug-dash-launcher is used in engineering builds to launch | |
| // dash shells. It uses PackageResolver to add tool package directories | |
| // into the dash environment. | |
| "/bootstrap/debug-dash-launcher", | |
| "/core/debug-dash-launcher", | |
| // process is used in engineering builds to launch | |
| // shell binaries. It uses PackageResolver to resolve tools from packages. | |
| "/bootstrap/process_resolver", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/fshost", | |
| source: "component", | |
| source_name: "bin", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/fshost", | |
| source: "component", | |
| source_name: "blob", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/fshost", | |
| source: "component", | |
| source_name: "data", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/core/remote-control", | |
| "/core/sshd-host", | |
| "/toolbox", | |
| // TODO(https://fxbug.dev/42181129): Remove once fixed. | |
| "/core/sl4f", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/fshost", | |
| source: "component", | |
| source_name: "tmp", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| // TODO(https://fxbug.dev/42181123): Remove once https://fxbug.dev/42167600 is fixed. | |
| "/core/sl4f", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/fshost", | |
| source: "component", | |
| source_name: "build-info", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "build-info", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/core/adb", | |
| "/core/build-info", | |
| "/core/feedback", | |
| "/core/system-update/omaha-client-service", | |
| "/core/system-update/system-update-checker", | |
| "/core/system-update/system-updater", | |
| "/core/system_recovery", | |
| "/core/system_recovery/pkg-recovery/system-updater", | |
| "/toolbox", | |
| // TODO(crbug.com/1326674): Is this still needed for one | |
| // or both realms? | |
| // TODO(https://fxbug.dev/42173552): Once we can define test realms out of tree | |
| // we should remove this. | |
| "/core/test_manager/chromium-system-tests:**", | |
| "/core/test_manager/chromium-tests:**", | |
| "/core/testing/chromium-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "pkgfs", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "system", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/bootstrap", | |
| "/bootstrap/console-launcher", | |
| "/bootstrap/driver_manager", | |
| "/core/system-update/omaha-client-service", | |
| "/core/system-update/system-update-checker", | |
| "/core/system-update/system-updater", | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.component.resolution.Resolver-full", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/bootstrap/driver_index", | |
| "/core/test_manager", | |
| "/core/testing/component-framework-tests:**", | |
| "/core/testing/test-arch-tests:**", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.pkg.garbagecollector.Manager", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.pkg.resolution.PackageResolver", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.pkg.PackageCache", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.pkg.PackageResolver-base", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/debug-dash-launcher", | |
| // This eng allowlist is used on userdebug builds when sl4f is enabled, so this | |
| // entry is needed even though this is the eng policy file and on eng builds | |
| // /bootstrap/process_resolver is routed the -full impl instead of the -base impl. | |
| // https://cs.opensource.google/fuchsia/fuchsia/+/main:src/lib/assembly/platform_configuration/src/subsystems/component.rs;l=172-175;drc=73535c61bc4f4402a06cf86985b426996895a6d1 | |
| "/bootstrap/process_resolver", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "fuchsia.pkg.PackageResolver-full", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/bootstrap/process_resolver", | |
| "/core/test_manager", | |
| "/core/testing/component-framework-tests:**", | |
| "/toolbox", | |
| // debug-dash-launcher is used in engineering builds to launch | |
| // dash shells. It uses PackageResolver to add tool package directories | |
| // into the dash environment. | |
| "/core/debug-dash-launcher", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/pkg-cache", | |
| source: "component", | |
| source_name: "full_resolver", | |
| capability: "resolver", | |
| target_monikers: [ | |
| "/**", | |
| ], | |
| }, | |
| { | |
| // Gives direct access to executable binaries. | |
| source_moniker: "/bootstrap/pkg-shell-commands", | |
| source: "component", | |
| source_name: "bin", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/pkg-resolver", | |
| source: "component", | |
| source_name: "fuchsia.pkg.RepositoryManager", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/pkg-resolver", | |
| source: "component", | |
| source_name: "fuchsia.pkg.rewrite.Engine", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.factory.lowpan.FactoryLookup", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.device.CountersConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.device.DeviceConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/sl4f", | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.device.DeviceExtraConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/core/sl4f", | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.device.EnergyScanConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.experimental.DeviceConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.experimental.DeviceExtraConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.experimental.DeviceRouteConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.experimental.DeviceRouteExtraConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.experimental.LegacyJoiningConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.thread.DatasetConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.thread.FeatureConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/core/lowpanservice", | |
| source: "component", | |
| source_name: "fuchsia.lowpan.thread.MeshcopConnector", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| { | |
| source_moniker: "<component_manager>", | |
| source: "component", | |
| source_name: "fuchsia.component.resolution.Resolver", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/bootstrap/test_manager", | |
| ], | |
| }, | |
| { | |
| source_moniker: "/bootstrap/devfs-with-pkg", | |
| source: "component", | |
| source_name: "dev-topological", | |
| capability: "directory", | |
| target_monikers: [ | |
| "/core/testing/storage-tests:**", | |
| ], | |
| }, | |
| // TODO(https://fxbug.dev/534733256): Remove when capability is routed | |
| // via a dictionary. | |
| { | |
| source_moniker: "/core/network/netstack", | |
| source: "component", | |
| source_name: "fuchsia.net.debug.PacketCaptureProvider", | |
| capability: "protocol", | |
| target_monikers: [ | |
| "/toolbox", | |
| ], | |
| }, | |
| ], | |
| debug_registration_policy: [ | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.Publisher", | |
| moniker: "/core/test_manager/**", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.Publisher", | |
| moniker: "/bootstrap/test_manager/**", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.Publisher", | |
| moniker: "/core/testing/**", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.Publisher", | |
| moniker: "/bootstrap/testing/**", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "fuzzed-env", | |
| name: "fuchsia.fuzzer.CoverageDataCollector", | |
| moniker: "/core/test_manager/tests:**", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.DebugData", | |
| moniker: "/core/test_manager", | |
| }, | |
| { | |
| debug: "protocol", | |
| environment_name: "test-env", | |
| name: "fuchsia.debugdata.DebugData", | |
| moniker: "/bootstrap/test_manager", | |
| }, | |
| ], | |
| }, | |
| } |