Closed anisyanka closed 3 years ago
The example relates to: https://github.com/OP-TEE/optee_client/pull/239 https://github.com/OP-TEE/optee_os/pull/4248
It would be nice to have a Cmake script. I'll see if I can help.
Do you mean Cmake script to build syslog
plugin here? Or maybe you need script in optee-client repo to build any future plugins?
The supplicant plugin syslog shall be built as a .so and installed in /usr/lib/tee-supplicant/plugins/ right?
Yes, it's right.
All comments have been addressed
All comments have been addressed
All comments have been addressed
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
The commit updated, thanks for the review!
TEE clients can add to the tee-supplicant an own plugin. This feature makes the supplicant a bit more flexible in terms of providing services. Any external TEE services can be designed as a tee-supplicant plugin.
User TAs and also the OP-TEE kernel code can interact with the plugins with the help of the special PRC.
This patch adds example of using the plugin framework. By default in tee-supplicant there is 'syslog' plugin. It can write log messages from OP-TEE (TAs or kernel) to system log. You can find the implementation of the plugin in 'tee-supplicant/plugins/syslog/syslog_plugin.c' file.
This example adds a new TA, which interacts with 'syslog' plugin with the help of the plugin-pta. This TA increments a value and prints some strings to the syslog. Also patch adds a host CA, which calls the TA 'TA_PING_CNT' times.
If the example works successfully, we can find the following strings in the log file (for qemu it's '/var/log/messages' file):
Signed-off-by: Aleksandr Anisimov a.anisimov@omprussia.ru