Initializes the new capability with the specified resource SID.
The list of access rights received by the capability owner is passed in the policy configuration.
Only one capability can be initialized for one resource within an ocap
family instance.
Type: call
policy
Syntax
initR <configuration> (in SID owner, in SID resource)
Parameters
|
Entity that is declared the capability owner. |
|
Link to the resource that will be associated with the object of the capability. |
Policy configuration
<configuration> ::= "{" <type> "," <rights> "}"
<type> ::= "type" ":" <resource-type>
<rights> ::= "rights" ":" "[" <right> {"," <right>} "]"
Configuration elements
|
Type that will be assigned to the resource. It must match one of the types in the family instance configuration. |
|
List of access rights received by the capability owner. It must be a subset of the list of embedded rights and access rights for the specified resource type in the |
Returned value
KSS_GRANT
, if the capability was successfully initialized, otherwise KSS_DENY
. The capability will not be initialized in the following cases:
All specified restrictions apply only within the ocap
family instance.