| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| { |
| capabilities: [ |
| // Device tree |
| { |
| directory: "dev", |
| rights: [ "rw*" ], |
| path: "/dev", |
| }, |
| { |
| protocol: [ |
| "fuchsia.device.fs.Exporter", |
| "fuchsia.device.manager.Administrator", |
| "fuchsia.device.manager.DebugDumper", |
| "fuchsia.device.manager.SystemStateTransition", |
| "fuchsia.driver.development.DriverDevelopment", |
| "fuchsia.driver.registrar.DriverRegistrar", |
| "fuchsia.hardware.pci.DeviceWatcher", |
| "fuchsia.hardware.usb.DeviceWatcher", |
| ], |
| }, |
| |
| // Component runner for drivers |
| { |
| runner: "driver", |
| path: "/svc/fuchsia.component.runner.ComponentRunner", |
| }, |
| ], |
| use: [ |
| { |
| directory: "boot", |
| rights: [ "rx*" ], |
| path: "/boot", |
| }, |
| { |
| directory: "system", |
| rights: [ "rx*" ], |
| path: "/system", |
| }, |
| { |
| directory: "pkgfs", |
| rights: [ "rx*" ], |
| path: "/pkgfs", |
| }, |
| { |
| protocol: [ |
| "fuchsia.boot.Arguments", |
| "fuchsia.boot.Items", |
| "fuchsia.boot.RootResource", |
| "fuchsia.boot.WriteOnlyLog", |
| "fuchsia.driver.development.DriverIndex", |
| "fuchsia.driver.index.DriverIndex", |
| "fuchsia.driver.registrar.DriverRegistrar", |
| "fuchsia.kernel.RootJob", |
| |
| // This is only used when the kernel commandline flag devmgr.enable-ephemeral |
| // is set, which enables loading drivers ephemerally. This is intended for |
| // eng builds only. |
| "fuchsia.pkg.PackageResolver", |
| "fuchsia.power.manager.DriverManagerRegistration", |
| "fuchsia.process.Launcher", |
| "fuchsia.process.Resolver", |
| "fuchsia.scheduler.ProfileProvider", |
| "fuchsia.tracing.provider.Registry", |
| ], |
| }, |
| { |
| // The Realm protocol is required to start components. |
| protocol: "fuchsia.component.Realm", |
| }, |
| ], |
| expose: [ |
| { |
| directory: "dev", |
| from: "self", |
| }, |
| { |
| protocol: [ |
| "fuchsia.device.fs.Exporter", |
| "fuchsia.device.manager.Administrator", |
| "fuchsia.device.manager.DebugDumper", |
| "fuchsia.device.manager.SystemStateTransition", |
| "fuchsia.driver.development.DriverDevelopment", |
| "fuchsia.driver.registrar.DriverRegistrar", |
| "fuchsia.hardware.pci.DeviceWatcher", |
| "fuchsia.hardware.usb.DeviceWatcher", |
| ], |
| from: "self", |
| }, |
| { |
| runner: "driver", |
| from: "self", |
| }, |
| ], |
| } |