blob: 50fb9e5f91c5168a534774641219b8d3481df695 [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 zz;
using 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) -> (zx.status status, handle<channel> out);
/// Rights: handle must have ZX_RIGHT_DESTROY.
NoShortDesc(handle handle) -> ();
};