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.
Parameters¶
- caps: FileCaps 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