blob: 00b2812f9da0ef0fda3454a7f2096ff7f3815b79 [file] [log] [blame]
// Copyright 2019 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 zx;
[Transport="Syscall"]
protocol Rights {
/// Create an exception channel for a given job, process, or thread.
/// Rights: handle must have ZX_RIGHT_INSPECT and have ZX_RIGHT_DUPLICATE and have ZX_RIGHT_TRANSFER and have ZX_RIGHT_MANAGE_THREAD.
/// Rights: If handle is of type ZX_OBJ_TYPE_JOB or ZX_OBJ_TYPE_PROCESS, it must have ZX_RIGHT_ENUMERATE.
DoThing(handle handle, uint32 options) -> (status status, handle:CHANNEL out);
/// Rights: handle must have ZX_RIGHT_DESTROY.
NoShortDesc(handle handle) -> ();
};