Version 0 of the capsicum cap_rights_t structure.
class ref CapRights0
Initialises with no rights.
new ref create() : CapRights0 ref^
Initialises with the rights from a FileCaps.
new ref from( caps: Flags[(FileCreate val | FileChmod val | FileChown val | FileLink val | FileLookup val | FileMkdir val | FileRead val | FileRemove val | FileRename val | FileSeek val | FileStat val | FileSync val | FileTime val | FileTruncate val | FileWrite val | FileExec val), U32 val] box) : CapRights0 ref^
Initialises with the rights on the given file descriptor.
new ref descriptor( fd: I32 val) : CapRights0 ref^
fun ref set( cap: U64 val) : None val
fun ref unset( cap: U64 val) : None val
Limits the fd to the encoded rights.
fun box limit( fd: I32 val) : Bool val
Merge the rights in that into this.
fun ref merge( that: CapRights0 ref) : None val
Remove the rights in that from this.
fun ref remove( that: CapRights0 ref) : None val
Clear all rights.
fun ref clear() : None val
Check that this is a superset of the rights in that.
fun box contains( that: CapRights0 ref) : Bool val
fun box _version() : I32 val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/capsicum-CapRights0