structstd.macho.PROT[src]

Values

ConstantNONE[src]

[MC2] no permissions

Source Code

Source code
pub const NONE: vm_prot_t = 0x00

ConstantREAD[src]

[MC2] pages can be read

Source Code

Source code
pub const READ: vm_prot_t = 0x01

ConstantWRITE[src]

[MC2] pages can be written

Source Code

Source code
pub const WRITE: vm_prot_t = 0x02

ConstantEXEC[src]

[MC2] pages can be executed

Source Code

Source code
pub const EXEC: vm_prot_t = 0x04

ConstantCOPY[src]

When a caller finds that they cannot obtain write permission on a mapped entry, the following flag can be used. The entry will be made "needs copy" effectively copying the object (using COW), and write permission will be added to the maximum protections for the associated entry.

Source Code

Source code
pub const COPY: vm_prot_t = 0x10

Source Code

Source code
pub const PROT = struct {
    /// [MC2] no permissions
    pub const NONE: vm_prot_t = 0x00;
    /// [MC2] pages can be read
    pub const READ: vm_prot_t = 0x01;
    /// [MC2] pages can be written
    pub const WRITE: vm_prot_t = 0x02;
    /// [MC2] pages can be executed
    pub const EXEC: vm_prot_t = 0x04;
    /// When a caller finds that they cannot obtain write permission on a
    /// mapped entry, the following flag can be used. The entry will be
    /// made "needs copy" effectively copying the object (using COW),
    /// and write permission will be added to the maximum protections for
    /// the associated entry.
    pub const COPY: vm_prot_t = 0x10;
}