Enum zircon_object::task::PolicyCondition[][src]

#[repr(u32)]pub enum PolicyCondition {
    BadHandle,
    WrongObject,
    VmarWx,
    NewAny,
    NewVMO,
    NewChannel,
    NewEvent,
    NewEventPair,
    NewPort,
    NewSocket,
    NewFIFO,
    NewTimer,
    NewProcess,
    NewProfile,
    AmbientMarkVMOExec,
}

The condition when a policy is applied.

Variants

BadHandle

A process under this job is attempting to issue a syscall with an invalid handle. In this case, PolicyAction::Allow and PolicyAction::Deny are equivalent: if the syscall returns, it will always return the error ZX_ERR_BAD_HANDLE.

WrongObject

A process under this job is attempting to issue a syscall with a handle that does not support such operation.

VmarWx

A process under this job is attempting to map an address region with write-execute access.

NewAny

A special condition that stands for all of the above ZX_NEW conditions such as NEW_VMO, NEW_CHANNEL, NEW_EVENT, NEW_EVENTPAIR, NEW_PORT, NEW_SOCKET, NEW_FIFO, And any future ZX_NEW policy. This will include any new kernel objects which do not require a parent object for creation.

NewVMO

A process under this job is attempting to create a new vm object.

NewChannel

A process under this job is attempting to create a new channel.

NewEvent

A process under this job is attempting to create a new event.

NewEventPair

A process under this job is attempting to create a new event pair.

NewPort

A process under this job is attempting to create a new port.

NewSocket

A process under this job is attempting to create a new socket.

NewFIFO

A process under this job is attempting to create a new fifo.

NewTimer

A process under this job is attempting to create a new timer.

NewProcess

A process under this job is attempting to create a new process.

NewProfile

A process under this job is attempting to create a new profile.

AmbientMarkVMOExec

A process under this job is attempting to use zx_vmo_replace_as_executable() with a ZX_HANDLE_INVALID as the second argument rather than a valid ZX_RSRC_KIND_VMEX.

Trait Implementations

impl Clone for PolicyCondition[src]

impl Copy for PolicyCondition[src]

impl Debug for PolicyCondition[src]

Auto Trait Implementations

impl RefUnwindSafe for PolicyCondition

impl Send for PolicyCondition

impl Sync for PolicyCondition

impl Unpin for PolicyCondition

impl UnwindSafe for PolicyCondition

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.