The endpoint is designed to gain access to named blobs (for example, access to the ROMFS image that is part of the KasperskyOS kernel image).
Information about methods of the endpoint is provided in the table below.
Methods of the blob.Blob endpoint (kl.core.Blob interface)
Method
Method purpose and parameters
Potential danger of the method
Get
Purpose
Gets the handle of a blob based on the name of this blob.
Parameters
[in] name – BLOB name.
[out] handle – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the blob.
[out] size – size of the BLOB in bytes.
[out] rc – return code.
Allows the kernel memory to be used up by creating a multitude of objects within it.
Map
Purpose
Reserves a virtual memory region and maps the BLOB to it.
Parameters
[in] resource – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the blob.
[in] prot – flags defining the access rights to the BLOB.
[in] attr – flags defining the parameters of the virtual memory region.
[out] address – base address of the virtual memory region.
[out] mapping – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the virtual memory region.
[out] rc – return code.
Allows the kernel memory to be used up by creating a multitude of objects within it.
GetSize
Purpose
Gets the size of the BLOB.
Parameters
[in] handle – value whose binary representation consists of multiple fields, including a handle field and a handle permissions mask field. The handle identifies the blob.