CapRights0¶
Version 0 of the capsicum cap_rights_t structure.
Constructors¶
create¶
Initialises with no rights.
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.
Parameters¶
- fd: I32 val
Returns¶
- CapRights0 ref^
Public Functions¶
set¶
Parameters¶
- cap: U64 val
Returns¶
- None val
unset¶
Parameters¶
- cap: U64 val
Returns¶
- None val
limit¶
Limits the fd to the encoded rights.
Parameters¶
- fd: I32 val
Returns¶
- Bool val
merge¶
Merge the rights in that into this.
Parameters¶
- that: CapRights0 ref
Returns¶
- None val
remove¶
Remove the rights in that from this.
Parameters¶
- that: CapRights0 ref
Returns¶
- None val
clear¶
Clear all rights.
Returns¶
- None val
contains¶
Check that this is a superset of the rights in that.
Parameters¶
- that: CapRights0 ref
Returns¶
- Bool val