blob: 4d7315809dda5d89504113dbb660f4f9017cafe8 [file] [log] [blame]
// 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.
{
include: [
"inspect/client.shard.cml",
"syslog/client.shard.cml",
],
// Information about the program to run.
program: {
lifecycle: { stop_event: "notify" },
},
capabilities: [
{
directory: "dev-topological",
// TODO(https://fxbug.dev/42068900): change this to r* when that
// doesn't prevent the use of /dev/null.
//
// TODO(https://fxbug.dev/42157659): Expose this without the READ_BYTES
// right when the world speaks io2.
rights: [ "rw*" ],
path: "/dev",
},
{
directory: "dev-class",
// TODO(https://fxbug.dev/42157659): Expose this without the READ_BYTES
// right when the world speaks io2.
rights: [ "r*" ],
path: "/dev/class",
},
{
directory: "dev-builtin",
rights: [ "rw*" ],
path: "/dev/builtin",
},
],
use: [
{ protocol: "fuchsia.device.fs.lifecycle.Lifecycle" },
{
directory: "dev",
rights: [ "rw*" ],
path: "/dev",
},
// These services are not actually used but exist to increase the lifetime
// of components. The capabilities are named after their place in the topology.
// We cannot use a single service due to the lack of service merging.
{
service: [
"bootstrap.base-drivers",
"bootstrap.boot-drivers",
"bootstrap.full-drivers",
],
availability: "optional",
},
{ service: "bootstrap.driver-hosts" },
],
expose: [
{
directory: [
"dev-builtin",
"dev-class",
"dev-topological",
],
from: "self",
},
],
}