blob: aa06bc6af73f5490473d73526d072b6735c30dd1 [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.
// Passes routes from the expose across to a child which attempts to increase its rights on
// the read only directory.
{
include: [
"//src/sys/component_manager/tests/meta/elf_runner_and_environment.shard.cml",
"inspect/offer.shard.cml",
],
children: [
{
name: "use_dir_rights",
url: "#meta/invalid_intermediate_offer_dir_rights.cm",
environment: "#elf-env",
},
{
name: "expose_dir_rights",
url: "#meta/expose_dir_rights.cm",
environment: "#elf-env",
},
],
offer: [
{
directory: "read_only",
from: "#expose_dir_rights",
to: "#use_dir_rights",
},
{
directory: "read_write",
from: "#expose_dir_rights",
to: "#use_dir_rights",
},
{
directory: "read_exec",
from: "#expose_dir_rights",
to: "#use_dir_rights",
rights: [ "rx*" ],
},
{
directory: "read_only_after_scoped",
from: "#expose_dir_rights",
to: "#use_dir_rights",
},
{
protocol: "fuchsia.logger.LogSink",
from: "parent",
to: [
"#expose_dir_rights",
"#use_dir_rights",
],
},
],
expose: [
{
protocol: "fidl.test.components.Trigger",
from: "#use_dir_rights",
},
],
}