Visible to Intel only — GUID: GUID-301129A5-712D-41D0-9C7F-129B59BADFD8
Visible to Intel only — GUID: GUID-301129A5-712D-41D0-9C7F-129B59BADFD8
Linux* Host Application Sample
This is a simple Linux* host application that:
- Loads a trusted application into the Intel® DAL virtual machine (DAL VM).
- Communicates with the trusted application.
It uses the legacy Intel DAL Java* Host Interface APIs and runs over the user space.
This application performs this flow:
- Initializes a connection with the Intel DAL Host Interface Daemon.
- Installs a trusted application.
- Opens a session to the trusted application.
- Use the trusted application's SendAndRecv function to send command and receive data.
- Closes the session.
- Uninstalls the trusted application.
- Ends the connection with Intel DAL Host Interface Daemon.
This sample attempts to load a default trusted application called echo.dalp that should be located under /tmp/dal. You can find this .dalp file under the Include folder. Copy it to /tmp/dal to run this sample.
The sample includes the source code and an executable file that was compiled on Linux Yocto* distribution 64-bit OS.
In order to rebuild the sample code, you will need to:
- Install CMake
- Run inside /DALHostApplication/
cmake . make
The output folder is DALHostApplication/bin.
For running the resulting executable, make sure that the Intel DAL Host Interface Daemon is up and running, and run inside DALHostApplication/bin/:
./DALHostApplication