CapRights0
Version 0 of the capsicum cap_rights_t structure.
class ref CapRights0
Constructors
create
Initialises with no rights.
new ref create() : CapRights0 ref^
Returns
- CapRights0 ref^
from
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^
Parameters
- 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
Returns
- CapRights0 ref^
descriptor
Initialises with the rights on the given file descriptor.
new ref descriptor( fd: I32 val) : CapRights0 ref^
Parameters
- fd: I32 val
Returns
- CapRights0 ref^
Public Functions
set
fun ref set( cap: U64 val) : None val
Parameters
- cap: U64 val
Returns
- None val
unset
fun ref unset( cap: U64 val) : None val
Parameters
- cap: U64 val
Returns
- None val
limit
Limits the fd to the encoded rights.
fun box limit( fd: I32 val) : Bool val
Parameters
- fd: I32 val
Returns
- Bool val
merge
Merge the rights in that into this.
fun ref merge( that: CapRights0 ref) : None val
Parameters
- that: CapRights0 ref
Returns
- None val
remove
Remove the rights in that from this.
fun ref remove( that: CapRights0 ref) : None val
Parameters
- that: CapRights0 ref
Returns
- None val
clear
Clear all rights.
fun ref clear() : None val
Returns
- None val
contains
Check that this is a superset of the rights in that.
fun box contains( that: CapRights0 ref) : Bool val
Parameters
- that: CapRights0 ref
Returns
- Bool val
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/capsicum-CapRights0