W3cubDocs

/Pony

Cap

[Source]

The Capsicum rights.

primitive val Cap

Constructors

create

[Source]

new val create()
: Cap val^

Returns

Public Functions

enter

[Source]

This places the current process into capability mode, a mode of execution in which processes may only issue system calls operating on file descriptors or reading limited global system state. Access to global name spaces, such as file system or IPC name spaces, is prevented.

fun box enter()
: Bool val

Returns

read

[Source]

fun box read()
: U64 val

Returns

write

[Source]

fun box write()
: U64 val

Returns

seek_tell

[Source]

fun box seek_tell()
: U64 val

Returns

seek

[Source]

fun box seek()
: U64 val

Returns

pread

[Source]

fun box pread()
: U64 val

Returns

pwrite

[Source]

fun box pwrite()
: U64 val

Returns

mmap

[Source]

fun box mmap()
: U64 val

Returns

mmap_r

[Source]

fun box mmap_r()
: U64 val

Returns

mmap_w

[Source]

fun box mmap_w()
: U64 val

Returns

mmap_x

[Source]

fun box mmap_x()
: U64 val

Returns

mmap_rw

[Source]

fun box mmap_rw()
: U64 val

Returns

mmap_rx

[Source]

fun box mmap_rx()
: U64 val

Returns

mmap_wx

[Source]

fun box mmap_wx()
: U64 val

Returns

mmap_rwx

[Source]

fun box mmap_rwx()
: U64 val

Returns

creat

[Source]

fun box creat()
: U64 val

Returns

fexecve

[Source]

fun box fexecve()
: U64 val

Returns

fsync

[Source]

fun box fsync()
: U64 val

Returns

ftruncate

[Source]

fun box ftruncate()
: U64 val

Returns

lookup

[Source]

fun box lookup()
: U64 val

Returns

fchdir

[Source]

fun box fchdir()
: U64 val

Returns

fchflags

[Source]

fun box fchflags()
: U64 val

Returns

chflagsat

[Source]

fun box chflagsat()
: U64 val

Returns

fchmod

[Source]

fun box fchmod()
: U64 val

Returns

fchmodat

[Source]

fun box fchmodat()
: U64 val

Returns

fchown

[Source]

fun box fchown()
: U64 val

Returns

fchownat

[Source]

fun box fchownat()
: U64 val

Returns

fcntl

[Source]

fun box fcntl()
: U64 val

Returns

flock

[Source]

fun box flock()
: U64 val

Returns

fpathconf

[Source]

fun box fpathconf()
: U64 val

Returns

fsck

[Source]

fun box fsck()
: U64 val

Returns

fstat

[Source]

fun box fstat()
: U64 val

Returns

fstatat

[Source]

fun box fstatat()
: U64 val

Returns

fstatfs

[Source]

fun box fstatfs()
: U64 val

Returns

futimes

[Source]

fun box futimes()
: U64 val

Returns

futimesat

[Source]

fun box futimesat()
: U64 val

Returns

linkat

[Source]

fun box linkat()
: U64 val

Returns

mkdirat

[Source]

fun box mkdirat()
: U64 val

Returns

mkfifoat

[Source]

fun box mkfifoat()
: U64 val

Returns

mknodat

[Source]

fun box mknodat()
: U64 val

Returns

renameat

[Source]

fun box renameat()
: U64 val

Returns

symlinkat

[Source]

fun box symlinkat()
: U64 val

Returns

unlinkat

[Source]

fun box unlinkat()
: U64 val

Returns

accept

[Source]

fun box accept()
: U64 val

Returns

bind

[Source]

fun box bind()
: U64 val

Returns

connect

[Source]

fun box connect()
: U64 val

Returns

getpeername

[Source]

fun box getpeername()
: U64 val

Returns

getsockname

[Source]

fun box getsockname()
: U64 val

Returns

getsockopt

[Source]

fun box getsockopt()
: U64 val

Returns

listen

[Source]

fun box listen()
: U64 val

Returns

peeloff

[Source]

fun box peeloff()
: U64 val

Returns

recv

[Source]

fun box recv()
: U64 val

Returns

send

[Source]

fun box send()
: U64 val

Returns

setsockopt

[Source]

fun box setsockopt()
: U64 val

Returns

shutdown

[Source]

fun box shutdown()
: U64 val

Returns

bindat

[Source]

fun box bindat()
: U64 val

Returns

connectat

[Source]

fun box connectat()
: U64 val

Returns

sock_client

[Source]

fun box sock_client()
: U64 val

Returns

sock_server

[Source]

fun box sock_server()
: U64 val

Returns

mac_get

[Source]

fun box mac_get()
: U64 val

Returns

mac_set

[Source]

fun box mac_set()
: U64 val

Returns

sem_getvalue

[Source]

fun box sem_getvalue()
: U64 val

Returns

sem_post

[Source]

fun box sem_post()
: U64 val

Returns

sem_wait

[Source]

fun box sem_wait()
: U64 val

Returns

event

[Source]

fun box event()
: U64 val

Returns

kqueue_event

[Source]

fun box kqueue_event()
: U64 val

Returns

ioctl

[Source]

fun box ioctl()
: U64 val

Returns

ttyhook

[Source]

fun box ttyhook()
: U64 val

Returns

pdgetpid

[Source]

fun box pdgetpid()
: U64 val

Returns

pdwait

[Source]

fun box pdwait()
: U64 val

Returns

pdkill

[Source]

fun box pdkill()
: U64 val

Returns

exattr_delete

[Source]

fun box exattr_delete()
: U64 val

Returns

exattr_get

[Source]

fun box exattr_get()
: U64 val

Returns

exattr_list

[Source]

fun box exattr_list()
: U64 val

Returns

exattr_set

[Source]

fun box exattr_set()
: U64 val

Returns

acl_check

[Source]

fun box acl_check()
: U64 val

Returns

acl_delete

[Source]

fun box acl_delete()
: U64 val

Returns

acl_get

[Source]

fun box acl_get()
: U64 val

Returns

acl_set

[Source]

fun box acl_set()
: U64 val

Returns

kqueue_change

[Source]

fun box kqueue_change()
: U64 val

Returns

kqueue

[Source]

fun box kqueue()
: U64 val

Returns

eq

[Source]

fun box eq(
  that: Cap val)
: Bool val

Parameters

  • that: Cap val

Returns

ne

[Source]

fun box ne(
  that: Cap val)
: Bool val

Parameters

  • that: Cap val

Returns

Private Functions

_id

[Source]

Build a Capsicum ID from an index and a bit position.

fun box _id(
  idx: U64 val,
  bit: U64 val)
: U64 val

Parameters

Returns

© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/capsicum-Cap