blob: 4795414e12e9131a187112ab3bcc0fa54910dd17 [file] [log] [blame]
// Copyright 2020 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.
library test.policy;
using zx;
@discoverable
closed protocol ProtectedOperations {
// Attempts to use zx_vmo_replace_as_executable on the given VMO handle using an invalid
// resource handle, which exercises the ZX_POL_AMBIENT_MARK_VMO_EXEC job policy.
strict AmbientReplaceAsExecutable(resource struct {
vmo zx.Handle:VMO;
}) -> (resource struct {
vmo zx.Handle:VMO;
}) error zx.Status;
};