blob: 76913a2b5d3ad4a0677abde689984f59797c5725 [file]
{
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.
"/core/test_manager/**",
"/core/testing/**",
],
create_raw_processes: [
"/core/test_manager/elf_test_create_raw_processes_ambient_exec_runner",
"/core/test_manager/elf_test_create_raw_processes_runner",
"/core/test_manager/gtest_create_raw_processes_runner",
"/core/test_manager/starnix_unit_test_runner",
"/core/test_manager/system-tests:**",
"/core/testing/elf_test_create_raw_processes_ambient_exec_runner",
"/core/testing/elf_test_create_raw_processes_runner",
"/core/testing/gtest_create_raw_processes_runner",
"/core/testing/starnix-tests:**",
"/core/testing/system-tests:**",
"/core/testing/starnix_test_runners/starnix_unit_test_runner",
"/core/test_manager/fuzz_starnix_test_runner",
],
},
capability_policy: [
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.CpuResource",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.DebugResource",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.DebuglogResource",
capability: "protocol",
target_monikers: [
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.HypervisorResource",
capability: "protocol",
target_monikers: [
"/core/zircon-guest-manager/vmm",
"/core/debian-guest-manager/vmm",
"/core/termina-guest-manager/vmm",
"/core/testing/system-tests:**",
"/toolbox",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.InfoResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:**",
"/bootstrap/base-drivers:**",
"/bootstrap/full-drivers:**",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.IommuResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.IoportResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.IrqResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.RootJob",
capability: "protocol",
target_monikers: [
"/core/process_explorer",
"/core/cpu_profiler",
"/core/debugger/agents:**",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.RootJobForInspect",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.MmioResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/test_manager/system-tests:**",
"/core/zircon-guest-manager/vmm",
"/core/debian-guest-manager/vmm",
"/core/termina-guest-manager/vmm",
"/core/testing/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.MsiResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.PowerResource",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.SamplingResource",
capability: "protocol",
target_monikers: [
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.SmcResource",
capability: "protocol",
target_monikers: [
"/bootstrap/boot-drivers:dev",
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.TracingResource",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
],
},
{
source_moniker: "<component_manager>",
source: "component",
source_name: "fuchsia.kernel.VmexResource",
capability: "protocol",
target_monikers: [
"/toolbox",
"/core/testing/starnix-tests:**",
"/core/testing/system-tests:**",
"/core/test_manager/system-tests:**",
"/core/test_manager/chromium-system-tests:**",
"/core/test_manager/chromium-tests:**",
"/core/testing/chromium-tests:**",
"/core/zircon-guest-manager/vmm",
"/core/debian-guest-manager/vmm",
"/core/termina-guest-manager/vmm",
// 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: "<component_manager>",
source: "component",
source_name: "fuchsia.component.resolution.Resolver",
capability: "protocol",
target_monikers: [
"/bootstrap/driver_index",
],
},
{
source_moniker: "/",
source: "framework",
source_name: "fuchsia.component.Introspector",
capability: "protocol",
target_monikers: [
"/core/memory_monitor",
"/core/memory_monitor2",
"/bootstrap/driver_manager",
],
},
{
source_moniker: "/bootstrap/fshost",
source: "component",
source_name: "blob",
capability: "directory",
target_monikers: [
"/toolbox",
],
},
{
source_moniker: "/bootstrap/fshost",
source: "component",
source_name: "fuchsia.fxfs.WriteBlob",
capability: "protocol",
target_monikers: [
"/bootstrap/pkg-cache",
],
},
{
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: [
"/bootstrap/netsvc",
"/core",
"/toolbox",
// TODO(https://fxbug.dev/42181123): Remove once https://fxbug.dev/42167600 is fixed.
"/core/sl4f",
],
},
{
// We restrict access to ProcessResolver because it is a deprecated protocol
// that allows resolving binaries from universe packages.
source_moniker: "/bootstrap/process_resolver",
source: "component",
source_name: "fuchsia.process.Resolver",
capability: "protocol",
target_monikers: [
"/toolbox",
// This protocol is available in the serial console
"/bootstrap/console-launcher",
// This collection is used by CTF tests
"/core/testing/ctf-tests:**",
// TODO(https://fxbug.dev/42057361): Scrutiny throws an routing error unless
// this is added. `process_resolver` does not have a `use` declaration for
// it's own capability.
"/bootstrap",
"/bootstrap/process_resolver",
"/core/driver_playground",
// debug-dash-launcher is used in engineering builds to launch dash shells. It
// uses ProcessResolver to allow #!resolve scripts to be include in the dash
// environment.
"/bootstrap/debug-dash-launcher",
"/core/debug-dash-launcher",
],
},
{
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: [
"/toolbox",
],
},
{
source_moniker: "/core/lowpanservice",
source: "component",
source_name: "fuchsia.lowpan.device.DeviceExtraConnector",
capability: "protocol",
target_monikers: [
"/toolbox",
// TODO(https://fxbug.dev/42059298): Create explicit security policies for
// out-of-tree product variants.
"/core/factory/realm_builder:**",
],
},
{
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",
],
},
{
// We restrict access to dev because it is equivalent to giving access to the
// component hub.
// Users should try to use the dev-class directory capability instead.
// OWNERS: surajmalhotra@google.com, dgilhooley@google.com
source_moniker: "/bootstrap/devfs",
source: "component",
source_name: "dev-topological",
capability: "directory",
target_monikers: [
"/bootstrap/devfs",
"/bootstrap/devfs-with-pkg",
"/bootstrap/fshost",
"/bootstrap/fshost/blobfs",
],
},
{
source_moniker: "/bootstrap/devfs-with-pkg",
source: "component",
source_name: "dev-topological",
capability: "directory",
target_monikers: [
"/bootstrap",
"/bootstrap/console-launcher",
"/bootstrap/cpu_manager",
"/bootstrap/devfs-with-pkg",
"/bootstrap/flashmap",
"/bootstrap/paver",
"/bootstrap/power_manager",
"/bootstrap/sysinfo",
"/bootstrap/vboot-fwparam",
"/core/audio_recording",
"/core/driver_playground",
"/core/factory",
"/core/factory_env",
"/core/factory/framework",
"/core/factory_reset",
"/core/ffx-laboratory:**",
"/core/oemcrypto",
"/core/paver",
"/core/playready-cdm",
"/core/pre-migration-service",
"/core/reverse-migration",
"/core/sl4f",
"/toolbox",
"/core/termina-guest-manager",
"/core/test_manager/google-tests:**",
"/core/test_manager/system-tests:**",
"/core/testing/devices-tests:**",
"/core/testing/drm-tests:**",
"/core/testing/system-tests:**",
"/core/testing/system-validation-tests:**",
],
},
{
// devfs access should be routed through the /bootstrap/devfs component
source_moniker: "/bootstrap/driver_manager",
source: "component",
source_name: "dev",
capability: "directory",
target_monikers: [
"/bootstrap/devfs",
"/bootstrap/driver_manager",
],
},
],
},
}